[Qt-interest] How to: Display a pop up notice.
Andre Somers
andre at familiesomers.nl
Mon Feb 15 10:34:34 CET 2010
Martin Guillon wrote:
>
> 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,
>
Probably to mimick QMessageBox behaviour, such as blocking interaction
with the other application windows.
André
More information about the Qt-interest-old
mailing list