Hello there !
What is wrong with this code, i am confused
this function belongs to my MainWindow but when i run this code Qt says :Qt Code:
void QNotePad::createMenus() { m_newFileAction = fileMenu->addAction("New"); }To copy to clipboard, switch view to plain text mode
The program has unexpectedly finished.
/home/saeed/Documents/Qt Project/QNotePad-build-desktop/QNotePad exited with code 0
m_newFileAction is a QAction * data member.
Thanks
Added after 28 minutes:
i found it !
i had forgotten to insert QT+= gui core in my .pro file when i create new empty project
Bookmarks