Answer the question
In order to leave comments, you need to log in
What is the reason for this behavior of the program?
The program has a lot of all sorts of windows that are static and live throughout the program from start to finish. There are quite a lot of ui elements in the windows. And now a situation arose when creating a new window, I try to create a new element in this window, for example:
And the program crashestable = new QTableView;
The program ended unexpectedly.
C:\Work_Folder\16\build-main-1.0-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\main-1.exe crashed
10:07:06: Running steps for project main-1.0...
10:07:06: Settings unchanged, skipping qmake step.
10:07:06: Run: "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe"
C:/Qt/Tools/mingw492_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1 ]: Entering directory 'C:/Work_Folder/16/build-main-1.0-Desktop_Qt_5_5_1_MinGW_32bit-Debug'
mingw32-make[1]: Nothing to be done for 'first'.
mingw32-make[1]: Leaving directory 'C:/Work_Folder/16/build-main-1.0-Desktop_Qt_5_5_1_MinGW_32bit-Debug'
10:07:09: Process 'C:\Qt\Tools\mingw492_32\bin\mingw32-make. exe" completed successfully.
10:07:09: Time elapsed: 00:03.
Answer the question
In order to leave comments, you need to log in
There were stupid typos in the code like
byte1 = new Button(ButtonType::ONLY_TEXT_BUTTON, this);
byte1 = new Button(ButtonType::ONLY_TEXT_BUTTON, this);
byte1 = new Button(ButtonType::ONLY_TEXT_BUTTON, this);
byte1 = new Button(ButtonType::ONLY_TEXT_BUTTON, this);
byte1 = new Button(ButtonType::ONLY_TEXT_BUTTON, this);
byte2 = new Button(ButtonType::ONLY_TEXT_BUTTON, this);
byte3 = new Button(ButtonType::ONLY_TEXT_BUTTON, this);
byte4 = new Button(ButtonType::ONLY_TEXT_BUTTON, this);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question