qapplication not found
-
I followed the steps online, but can't solve it. Can't found qapplication, qwidgets, qmainwindow.
-
Hi and welcome to devnet,
In addition to @JonB: do you have any build failure ?
if not, then, it looks like it might be a code model issue, which, while annoying, does not preclude you from writing and building your application.
-
C Christian Ehrlicher moved this topic from General and Desktop on
-
@kdrpro1
Did you install Qt? How? What version? What platform?
Do you get these errors when you compile or only while editing?
The error which matters most is the first one, where it cannot locate the include file. -
@JonB 6.6, window, when editing. I just downloaded it yesterday, and then uninstalled webassem and 3d on maintenancetool, and then the file could not be found.
The base class Qobject also not found -
@kdrpro1 said in qapplication not found:
Only built the app once
Not sure what this means.
But if your app builds then those errors come from the code model like @SGaist suggested. -
@kdrpro1 said in qapplication not found:
Only built the app once
Not sure what this means.
But if your app builds then those errors come from the code model like @SGaist suggested. -
@kdrpro1 said in qapplication not found:
Only built the app once
Not sure what this means.
But if your app builds then those errors come from the code model like @SGaist suggested. -
on my Qt6.7.2 I was having the same problem. My user name folder had a space in the name "HP Box 27" and I created a new user without a space in it, and ran a new project from there. It gave me QCoreApplication as the main library, and I was able to include <QtWidgets/QPushbutton> after that. I was able to include <QTWidgets/QApplication> as well and the project build and ran. I am going to run with this for now. This is what my Cmake file looks like for now, I am still able to build and run the program.
-
Please report the issue at https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512
Both paths with spaces and Chinese characters should not pose any problems.