[Qt-interest] Re : 2 Main windows

BOUCARD Olivier boucard_olivier at yahoo.fr
Tue Oct 4 16:08:05 CEST 2011


A QMainWindow is a QWidget like the others. You can put a QMainWindow inside a QDialog.




>________________________________
>De : Graham Labdon <Graham.Labdon at avalonsciences.com>
>À : "Qt-interest at qt.nokia.com" <Qt-interest at qt.nokia.com>
>Envoyé le : Mardi 4 Octobre 2011 15h28
>Objet : [Qt-interest] 2 Main windows
>
>
> 
>Hello everyone
>Is there a way that I can get a main window to act as a  dialog?
>I want to be able to create and show the window and then return to the calling code when the window is dismissed –
> 
>{
>MyWindow w; // MyWindow is derived from QMainWindow
> 
>w.show(); // would use exec for a dialog 
> 
>return here when window is dismissed
>}
> 
>Thanks
> 
>Graham
>_______________________________________________
>Qt-interest mailing list
>Qt-interest at qt.nokia.com
>http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111004/de4cc297/attachment.html 


More information about the Qt-interest-old mailing list