[Qt-interest] Is there an event for when you try to click outside an active modal dialog?

John Eke tonee47 at yahoo.com
Wed Mar 18 15:03:36 CET 2009


Hi,

Imagine a QMessageBox displaying an error message, if you try to click elsewhere on the parent application, the messagebox flashes, to show that it must first be closed before you can perform other operations.

Is there a way to trap that flash? Is there an event sent somewhere when the dialog is flashing?

- John E




________________________________
From: Samuel Rødal <sroedal at trolltech.com>
To: James Yan <jyan972 at gmail.com>
Cc: qt-interest at trolltech.com
Sent: Wednesday, March 18, 2009 9:52:01 AM
Subject: Re: [Qt-interest] in fact, QImage::ARGB32 is BGRA32 ?

James Yan wrote:
> OK, I C. :-)
> but, in fact my buff-modify function is requested to wrote with in ANSI
> C, so no Qt-way available for such case. :(

As long as you operate on an int at a time instead of a char at a time, 
and use shift operators and bit masks to manipulate the pixel's color 
channels, your code should be endian-independent.

--
Samuel Rødal
_______________________________________________
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/20090318/16b8f673/attachment.html 


More information about the Qt-interest-old mailing list