On Nov 28, 2007 12:00 PM, Andreas Pakulat <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
But you can do this inside your dialog class. Just override the accept<br>and reject methods and do whatever logic you have their.<br><br>It doesn't make sense to have a modal dialog without another window<br>(i.e. in your __main__ function), as then its not really modal. And
<br>making a modal dialog is exactly what the exec_() does.<br><br>Andreas<font color="#888888"></font></blockquote><div><br>Exactly, but in this case, I need a modal dialog, that why I use the exec_.<br><br>In fact, my problem is not really how to use a QDialog, I already use some QDialog (modal with the exec_) and they work great.
<br>My problem is what can make a "Bus Error" when I just simply want to create a QDialog (even the simplest one).<br></div></div><br>-- <br>Alex<br><a href="http://alexandre.badez.googlepages.com/">http://alexandre.badez.googlepages.com/
</a><br><a href="mailto:alexandre.badez@gmail.com">alexandre.badez@gmail.com</a>