[Qt-interest] How to set up multiplle number of GUI
Ross Bencina
rossb-lists at audiomulch.com
Wed Jul 21 19:12:32 CEST 2010
Hi Vijay
Perhaps you have not explained yoru requirements well, but...
For two GUIs yes, you need two top level windows (QWidgets), but you don't need two QApplication instances or two event loops. In Qt the two top level windows can easily share the same QApplication and event loop. In any case, you are only allowed to have one QApplication per process, that can't be avoided.
If you really do need things to be completely separate you could create two separate applications and a third one which launches them.
Ross.
----- Original Message -----
From: Vijay Kansal
To: qt-interest at trolltech.com
Sent: Thursday, July 22, 2010 2:25 AM
Subject: [Qt-interest] How to set up multiplle number of GUI
Hi,
I want to create a Qt Aplication in which GUI contains two buttons
Clicking on these two buttons will set up different GUI as they refer to objects of different classes.
For this, I have to start separate event processing loops for the two classes.
This means i need to create separate QApplication objects for the two classes
but, QApplication object requires argc and argv as its parameters
So, how can i achieve my requirements
please help.
--
vijay
------------------------------------------------------------------------------
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100722/46f3ca9f/attachment.html
More information about the Qt-interest-old
mailing list