I have a some problem: I need to bring a QT application main window to front. It should become on the top of all windows (active and topmost).

I send a special message to my application (e.g. WM_USER_BRING_TO_TOP) and get the main window HWND (through winId()).
After this, i tried BringWindowToTop(), SetActiveWindow(), SetForegroundWindow(), set window style to WS_EX_TOPMOST, set window position to HWND_TOPMOST, but it all did not brought window to top. The only thing i've got was a flashing window on the taskbar.

Can anyone help me to understand why? Can you suggest a decision?