QT's error

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){

      

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326886636&siteId=291194637