This is not generally possible with Qt, as reordering windows that belong to another program is deliberately disallowed in most OSes. You may need to use the Windows API directly to do this (I doubt it would be that hard once you find out the HWND).
A more portable approach (and less invasive to the user) is to flash the window (or beep, or even open a popup window) to inform the user that new data has arrived. Then they can choose if they want to switch to your window or not.
You can also mark a window as “always on top” if you want it to be always visible (Windows Task Manager does this, for instance; the user can still iconify the application, or shade it on X-based systems).
|