[Qt-interest] obtaining application window from QApplication instance

Giacomo S. giacomo.strangolino at elettra.trieste.it
Fri Nov 12 10:28:03 CET 2010


Hi to all.

I would like to know how to retrieve the application window (if
possible) from the QApplication instance.

tried with topLevelWidgets() but in the case of a QMainWindow also
toolbar menus and actions are returned, which is not what I want...

what I need to do is to raise the window of a running application when a
particular message is received through dbus, in order to make it appear
on the desktop when it is iconified or below other windows.

Thanks in advance.

Giacomo

Elettra - Synchrotron Radiation Facility

Trieste, Italy.




More information about the Qt-interest-old mailing list