I currently have an application that is using QSystemTray and works well. I now have another application that needs to open up the first application if it's minimized to the tray OR on the start bar. This is the current code I have to open it.
Function
{
HWND hwnd=FindWindow(TITLE)
ShowWindow(hwnd, SW_SHOW);
if(!SetForegroundWindow(hwnd))
{
qWarning("Unable to find");
}
}
Function
{
HWND hwnd=FindWindow(TITLE)
ShowWindow(hwnd, SW_SHOW);
if(!SetForegroundWindow(hwnd))
{
qWarning("Unable to find");
}
}
To copy to clipboard, switch view to plain text mode
The only issue is that once it opens the entire application is WHITE and freezes. I'm guessing this is because Qt still thinks it's closed and won't show the dialog correctly. Any ideas on what's a workaround for this? Thanks!!!!
Bookmarks