[Qt-interest] How to: Display a pop up notice.

Martin Guillon MGuillon at movea.com
Mon Feb 15 09:01:44 CET 2010


Why would you need to create your own event loop? If you just create a QMainWindow(0)  that should do the trick as a popup... I am doing it and it works great (under windows at least)

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Raja Rokkam
Sent: Monday, February 15, 2010 7:46 AM
To: Mohammed Imran B
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] How to: Display a pop up notice.

Hi Imran,

                You can derive from QWidget and create your own  MessgaeBox which is quite easy. You will have to create a event loop and handle all the events
evtLoop = new QEventLoop();
return evtLoop->exec( QEventLoop::AllEvents );

-Raja.
On Mon, Feb 15, 2010 at 12:04 PM, Mohammed Imran B <imran.ar20487 at gmail.com<mailto:imran.ar20487 at gmail.com>> wrote:
Hi,

I want to display a pop up notice like QmessageBox that doesn't have any buttons to accept the inputs.

Thanks and regards,

Imran.

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com<mailto: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/20100215/a353628f/attachment.html 


More information about the Qt-interest-old mailing list