<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><br></div>I don't understand why it makes a difference when the dialog is created and shown in another file.<br><br></div><div>System info:<br></div><div>OS: Kubuntu 15.04 (amd64)<br></div>Python: 2.7.9<br></div>PyQt4: 4.10.4<br><br></div>Best regards,<br></div>Reinder</div>
<br>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Vincent is correct.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Correctly set the parent of the dialog (or alternatively keep a reference, but parenting is the way to go IMO)</div><div class="gmail_extra"><br></div><div class="gmail_extra">- michael</div></div>