[PyKDE] QMessageBox and Qt3

Magnus Bjorklof bjorklof at hotmail.com
Fri Jun 7 01:21:01 BST 2002


>That is expected: in Qt 2.x, a modal dialog would silently call exec() on 
>show(), in Qt 3.0, this does no longer happen (which is a
>documented change).
>Doing an mb.exec_loop() instead of mb.show() should fix it.
>
>Regards,
>Soeren

Thanks, that works fine now with both Qt2 and Qt3. It's still strange that 
my code worked for Phil but not for me...


> > My program crashed without any error messages and after some 
>investigation I
> > could isolate the problem. These few lines work fine on Mandrake 8.2 
>with
> > PyQt 3.1 and Qt 2.3.1 but on Redhat 7.3 with Qt 3.0.3, PyQt 3.2.4 and 
>Python
> > 2.2 it just crashes.
> >
> > import sys
> > from qt import *
> >
> > a = QApplication(sys.argv)
> >
> > mb = QMessageBox("Warning", "text", QMessageBox.Warning, 
>QMessageBox.Yes,
> > QMessageBox.No , QMessageBox.Cancel)
> > mb.show()


Magnus Bjorklof


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com




More information about the PyQt mailing list