F:\QT\setcube_test1\mymainwindow.cpp:46: error: prototype for 'void MyMainWindow::resizeEvent(QResizeEvent*)' does not match any in class 'MyMainWindow'
void MyMainWindow::resizeEvent(QResizeEvent *size){
void MyMainWindow::resizeEvent(QResizeEvent *size){
At the beginning, QT reported an error like this. I thought it was not because my class inherited from QMainWindow instead of this base class. Later, I looked at the header file…………
The parameters of resizeEvent are not written in.... stupid