[Development] QPlatformWindow isActive implementation on Windows
Daiwei Li
daiweili at gmail.com
Tue Aug 6 10:41:45 CEST 2013
Hi all,
The documentation in the
source<http://qt.gitorious.org/qt/qtbase/blobs/stable/src/gui/kernel/qplatformwindow.cpp#line170>
for
QPlatformWindow states that isActive is used to indicate whether a window
should appear active from a style perspective. The implementation of
isActive in qwindowswindow.cpp uses
GetActiveWindow<http://msdn.microsoft.com/en-us/library/windows/desktop/ms646292(v=vs.85).aspx>
instead
of GetForegroundWindow<http://msdn.microsoft.com/en-us/library/windows/desktop/ms633505(v=vs.85).aspx>.
I believe the latter is correct, as it returns the window receiving
keyboard input. Can anyone familiar with that part of the code comment?
While digging into this, I discovered that the QPlatformWindow's isActive
method isn't used by QWindow at all. Anyone know why that is?
Best,
Daiwei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130806/31e26c1c/attachment.html>
More information about the Development
mailing list