PDA

View Full Version : QMessageBox problem



flizsk
20th February 2010, 13:48
Hi, I have a little problem.. My code looks like this:



program is hidden in systray
constructor with timer
timer function
here is qmessagebox->show()


and the problem is, when i click OK on the messagebox, it quits program.. so, how can i do it right? thx

Fenix Voltres
20th February 2010, 13:52
try adding

QApplication::setQuitOnLastWindowClosed(false);
in main.cpp.