QtGui/QAction: No such file or directory
Mobile and Embedded
2
Posts
2
Posters
5.1k
Views
1
Watching
-
In file included from ../../../Desktop/johorTrain/mainwindow.cpp:2:0:
QtGui/QAction: No such file or directoryThe file is running fine this morning, suddenly it prompts an error in the afternoon. I don't remember making any amendment. Any help is appreciated
-
Maybe you have switched the Qt version in Kit settings?
In Qt 4, QAction is part of QtGui module. In Qt 5, it is part of QtWidgets module. Best option is not to specify the module name when including the header.