zgulser
27th March 2012, 11:41
Hi,
I now experinceing a problem and suspect QDialog::exec() method.
The problem is sometimes(not often) my mainwindow stays always on top although I click any other windows in my desktop.
As I said I suspect QDialog::exec() because I didn't set some of the dialogs a parent. Any ideas?
Added after 1 44 minutes:
By the way I found winEvent method imlemented
bool GuiManager::winEvent(MSG* message, long* result) {
if(message->message == WM_POWERBROADCAST) {
if(message->wParam == PBT_APMSUSPEND || message->wParam == PBT_APMSTANDBY) {
if(currentView() == MAIN_VIEW) {
onSignOutClicked();
}
return true;
}
} else if(message->message == (WM_USER+48130)) {
setGuiVisible(true);
}
return QMainWindow::winEvent(message, result);
}
Could this be the reason why?
I now experinceing a problem and suspect QDialog::exec() method.
The problem is sometimes(not often) my mainwindow stays always on top although I click any other windows in my desktop.
As I said I suspect QDialog::exec() because I didn't set some of the dialogs a parent. Any ideas?
Added after 1 44 minutes:
By the way I found winEvent method imlemented
bool GuiManager::winEvent(MSG* message, long* result) {
if(message->message == WM_POWERBROADCAST) {
if(message->wParam == PBT_APMSUSPEND || message->wParam == PBT_APMSTANDBY) {
if(currentView() == MAIN_VIEW) {
onSignOutClicked();
}
return true;
}
} else if(message->message == (WM_USER+48130)) {
setGuiVisible(true);
}
return QMainWindow::winEvent(message, result);
}
Could this be the reason why?