Unsolved What's wrong with QMainWindow::show()
-
I installed Kubuntu 16.04. The Qt version is 5.5.1.
g_mainWin=new MainWindow;
g_mainWin->show();
The program was crash on g_mainWin->show(), but it was running fine in Linuxmint 17.1. How can I find the problem. I have no idea. Qt Creator debug had no more information with the problem. SOS. -
Hi and welcome
You should try with default GUI project and see it run so we know
qt install is ok.Then can you show the constructor of MainWindow ?
No reason to crash on show unless its some of the other widgets that crash. -
@mrjj It's very strange. It was woking when I use valgrind Memory Analyzer in Qt Creator. But it was crash when run or press F5 to debug.
-
did you try with break point in constructor and single step?
Does a default project works?