[Interest] New window in Qt makes the application activate

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Tue Feb 4 05:32:30 CET 2014


>
> As part of a (partly mistaken) emulation of some ancient Macintosh API's I
> was calling QWidget::activateWindow(). If the application is not active,
> that both makes the window active, and it makes the application active. I
> guess it's debatable whether activateWindow() should activate the
> application. I expected that it would just make the window the active
> window (painted with active appearance, ready to accept focus, title bar
> buttons with active appearance, etc.) or ready to be the active window when
> the application activated. The application can be activated via a click in
> the Dock icon, which doesn't select a window to be the active window, so
> whatever was active (or made active when the application is not active?)
> previously now becomes the active window.
>

Wow...so much active-ity in this para! :) Maybe we can refer this to the
Guinness Records for the most number of occurrences of a word! :P

BTW, thanks for sharing the solution.

-mandeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140204/81279efb/attachment.html>


More information about the Interest mailing list