<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello Community,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In one of pyqgis app built in QGIS 2.18 I have a waiting message to let know the user to wait until a project opens.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I simplified the process in the following scrip:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">from qgis.PyQt import QtWidgets<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">message = "Wait to open the airspace project..."<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">msg = QtWidgets.QMessageBox()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">msg.setText(message)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">msg.show()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">qgis.utils.iface.messageBar().pushMessage("Wait", message)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">for i in range(1000):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    print(i)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">qgis.utils.iface.messageBar().pushMessage("Done", "The process is done")<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">msg.setText("The process is done")<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">When I run the script as is in QGIS 2.18 the message "Wait to open the airspace project..." is displayed on both message bar and QMessageBox.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Then the loop starts and it display the i.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And at the end the message "The process is done" is displayed in both message bar and QMessageBox.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If I run the same scrip in 3.22.8-Bia³owie¿a, the loop starts and no wait message is displayed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The QMessageBox is somehow displayed without any message.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">After the loop is done "The process is done" is displayed in both pushed bar and QMessageBox.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What is strange "The process is done" disappear from the pushed bar and "Wait to open the airspace project..." is displayed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So this behavior is useless for the user.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is anyway hot to make QGIS 3.22 to display these messages in the proper sequence as they used to be displayed in QGIS 2.18.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I hope you can access the video at this link. I explained the behavior and you can see it<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://drive.google.com/file/d/1tQNP6nBRL0tAS4bl_2i5heHz7viwCCAv/view?usp=sharing">https://drive.google.com/file/d/1tQNP6nBRL0tAS4bl_2i5heHz7viwCCAv/view?usp=sharing</a><o:p></o:p></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This electronic message, as well as any transmitted files included in the electronic message, may contain privileged or confidential information and is intended solely for the use of the individual(s) or entity to which it is addressed. If you have received
 this electronic message in error please notify the sender immediately and delete the electronic message. Any unauthorized copying, disclosure or distribution of the electronic message is strictly forbidden. NAV CANADA accepts no liability for any damage caused
 by any virus and/or other malicious code transmitted by this electronic communication.<br>
<br>
Le présent message électronique et tout fichier qui peut y être joint peuvent contenir des renseignements privilégiés ou confidentiels destinés à l’usage exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez reçu ce message électronique
 par erreur, veuillez en informer l’expéditeur immédiatement et supprimez le. Toute reproduction, divulgation ou distribution du présent message électronique est strictement interdite. NAV CANADA n’assume aucune responsabilité en cas de dommage causé par tout
 virus ou autre programme malveillant transmis par ce message électronique.<br>
</font>
</body>
</html>