[PyQt] Modelss dialog not usable
duncan duncan
duncan73 at gmail.com
Mon Dec 17 14:00:21 GMT 2007
Hello.
In my application (a QApplication), as central widget I have two
QListWidget.
When I double click on an item of a list widget, I want to show a dialog
with some detail data for the item
This is the relevant code, the dialog is designed using Qt-Designer and
windowModality is Qt::NonModal
---
ItemDlg = QtGui.QDialog()
ItemDlgGui = Ui_D_item_detail()
ItemDlgGui.setupUi(ItemDlg)
ItemDlg.show()
#ItemDlg.exec_()
---
If I use the ItemDlg.exec_() line, all work correctly, but the dialog is
modal, so I cannot work on the main window.
Since I want a modeless dialog, I try to use ItemDlg.show() but now the
dialog show itself and then close immediatly.
Any hints ?
thank
Gianluca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071217/80fa5474/attachment.html
More information about the PyQt
mailing list