PDA

View Full Version : QMessageBox crashes everytime inside the function?



Gokulnathvc
21st December 2011, 06:51
Everytime the QMessageBox crashes and the whole application is being crashed. Even the simple declaration also.


QMessageBox messbox;

Qiieha
21st December 2011, 09:25
Did you include the QMessageBox?


#include <QMessageBox>

stampede
21st December 2011, 09:42
Can you show the actual code ? I'm sure its something else, QMessageBox is working fine for thousands of Qt users ;)
Anyway, you can build the debug version, use debugger and post backtrace after crash.

Gokulnathvc
21st December 2011, 10:36
I have included the header file.

Qiieha
21st December 2011, 10:38
and it didn't help?

Gokulnathvc
21st December 2011, 10:44
I have used almost every form of QMessageBox, still it crashes everytime. In release version it works fine, but not in debug mode.

Qiieha
21st December 2011, 10:57
Download the newest libs from Qt.

FelixB
21st December 2011, 11:29
do you have other problems in debug mode? maybe you include the release lib?

nish
21st December 2011, 17:11
can you provide a minimal compilable program. may just with main() and messagebox inside it?