<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body>
    <p><font size="-1"><font face="Century Gothic">Hello,<br>
          i'm developing a QGIS plugin algorithm that composes a print
          layout.<br>
          The attached code works but the map window appears in the
          composer with the word "Rendering map".<br>
          and I get these messages:<br>
          <br>
          WARNING    QObject::connect: Cannot queue arguments of type
          'QItemSelection'<br>
                       (Make sure 'QItemSelection' is registered using
          qRegisterMetaType().)<br>
          WARNING    QObject::connect: Cannot queue arguments of type
          'QItemSelection'<br>
                       (Make sure 'QItemSelection' is registered using
          qRegisterMetaType().)<br>
          WARNING    QObject::connect: Cannot queue arguments of type
          'QItemSelection'<br>
                       (Make sure 'QItemSelection' is registered using
          qRegisterMetaType().)<br>
          WARNING    QObject::startTimer: Timers cannot be started from
          another thread<br>
          <br>
          CRITICAL    Qt : QObject::killTimer: Timers cannot be stopped
          from another thread<br>
          CRITICAL    Qt : QObject::startTimer: Timers cannot be started
          from another thread<br>
          CRITICAL    Qt : QObject::killTimer: Timers cannot be stopped
          from another thread<br>
          CRITICAL    Qt : QObject::startTimer: Timers can only be used
          with threads started with QThread<br>
          <br>
          Only after saving and reopening QGIS do I get the correct
          result in the composer.<br>
          <br>
          What is missing to make it work properly?<br>
          <br>
          Can someone help me?</font></font><br>
    </p>
  </body>
</html>