Israel Brewster
2018-10-22 18:37:56 UTC
I have an application (Qt 5.9) that has a variety of different types of windows you can open. If a user selects to open a type of window that is already open, I want to position the new window relative to the existing one. I can easily find any existing windows of a given type by going through the list of widgets in QApplication::allWidgets(), doing a qobject_cast to the proper type, and checking the result, but is there a way to determine which of these is the frontmost of that type? QApplication::ActiveWindow() doesn't help, because the activeWindow may not be of that type.
-----------------------------------------------
Israel Brewster
Systems Analyst II
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
-----------------------------------------------
[cid:6da0fc9b-4232-4d70-8cd7-***@flyravn.com]
[cid:fd4128fd-46d2-40d0-a243-***@flyravn.com]
-----------------------------------------------
Israel Brewster
Systems Analyst II
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7293
-----------------------------------------------
[cid:6da0fc9b-4232-4d70-8cd7-***@flyravn.com]
[cid:fd4128fd-46d2-40d0-a243-***@flyravn.com]