PDA

View Full Version : QMainWindow



weixj2003ld
5th August 2009, 03:48
I create a widget which inherit QMainWindow,if I
show() it,the program will break down,but if I add
QMessageBox::warning() before
show(),the program will run norally.
Why?

nish
5th August 2009, 04:04
what do you mean by break down? it crashes? or it simply terminates?.. for the later case see if you have QApplicaion::exe() called at the end of main...

can you produce a minimal compilable program reproducing the problem?

weixj2003ld
19th August 2009, 03:29
It is solved,thk u.