I create a widget which inherit QMainWindow,if Iit,the program will break down,but if I add beforeCode:
show()
the program will run norally.Code:
show(),
Why?
Printable View
I create a widget which inherit QMainWindow,if Iit,the program will break down,but if I add beforeCode:
show()
the program will run norally.Code:
show(),
Why?
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?
It is solved,thk u.