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
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to