[Qt-interest] Problems with Multiple QApplications
Nitin Mahajan
nitinm76 at yahoo.com
Tue Nov 3 03:59:03 CET 2009
Hello,
----- Original Message ----
> From: "Malyushytsky, Alex" <alex at wai.com>
> To: "qt-interest at trolltech.com" <qt-interest at trolltech.com>
> Sent: Tuesday, November 3, 2009 3:59:29
> Subject: Re: [Qt-interest] Problems with Multiple QApplications
>
> If you look at detailed description of QApplication class :
> http://doc.trolltech.com/4.5/qapplication.html
> You will find that a lot of things which point that there should be only single
> instance of QApplication in each application.
> Starting with:
> "The QApplication object is accessible through the instance() function which
> return a pointer equivalent to the global qApp pointer." ( only ONE global
> pointer, not many)
>
> You may continue with:
> "QApplication's main areas of responsibility are...."
>
> It is just designed this way.
> It does not matter which system you are running on.
> It has nothing to do how many widgets/windows you have opened in the same time.
>
>
> If you use 2 QApplication instances it either you should have 2 different
> executables or 2 separated widgets.
My mail says that I am running two different executables. Please read the mail carefully.
> In the first case split your project.
> In the second add as many widgets/ storage classes you need, nobody is limiting
> you.
>
> >> QApplications in Qt is not supported by design and why at all it is required?
> How can I understand this more clearly?
I said I am running two different QApplications, meaning in two different processes. I also
understand that having two QApps in a single executable is not required.
regards
-Nitin
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Nitin Mahajan
> Sent: Sunday, November 01, 2009 2:46 AM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] Problems with Multiple QApplications
>
> Hello,
>
> Can someone help me understand what are the problems in running multiple
> QApplications on Qt for Embedded Linux? Please point me to some documentation of
> mailing-list threads.
>
> While going through some of the mails in mailing lists, I have seen some
> comments which say that, running multiple QApplications in Qt is not supported
> by design and why at all it is required? How can I understand this more clearly?
>
> However, while reading the document "Qt for Embedded Linux Architecture" I did
> not find anything which says that we should not run multiple QApplication
> instances at the same time.
>
> I am executing two QApplications on a Embedded Linux platform (not a PC) and
> one of them in Full Screen mode.The one which is in FullScreen mode it is not
> getting keyboard focus, even though it receives mousePress events. If same app
> is run in normalMode, it gets the mousepress event followed by focusInEvent. Can
> somebody provide pointers on it?
>
> regards
>
> -Nitin
>
>
>
> New Email addresses available on Yahoo!
> Get the Email name you've always wanted on the new @ymail and @rocketmail.
> Hurry before someone else does!
> http://mail.promotions.yahoo.com/newdomains/aa/
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> ---------------------------------------------------------------------------------------------------
> Weidlinger Associates, Inc. made the following annotations.
>
> "This message and any attachments are solely for the intended recipient and may
> contain confidential or privileged information. If you are not the intended
> recipient, any disclosure, copying, use, or distribution of the information
> included in this message and any attachments is prohibited. If you have received
> this communication in error, please notify us by reply e-mail and immediately
> and permanently delete this message and any attachments. Thank you."
>
> "Please consider our environment before printing this email."
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
Get your new Email address!
Grab the Email name you've always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
More information about the Qt-interest-old
mailing list