how to open second window in my plugin for QGIS?

المشرف العام

Administrator
طاقم الإدارة
I create a Mainwindow for my plugin, but if I want to open a second window from this Mainwindow, with click on push button. How can I do?I tried the following function in my Main Class:

dialog = QDialog() dialog.ui = Ui_SecondWindow() dialog.ui.setupUi(dialog) dialog.exec_()But does not work.I use QGIS 2.4 and PyQt 4.



أكثر...
 
أعلى