Errors everywhere
-
I just changed computer, and installed QT. I continued my last project, which is located in OneDrive, but I don't understand why is everything red, with errors.
This is just one documment, the others are like that, plaged with errors.
Can anyone help me, thank you.
P.S: It compiles anyways but it doesn't let me write new code confortable. -
I just changed computer, and installed QT. I continued my last project, which is located in OneDrive, but I don't understand why is everything red, with errors.
This is just one documment, the others are like that, plaged with errors.
Can anyone help me, thank you.
P.S: It compiles anyways but it doesn't let me write new code confortable.@GGG03 Hi. have you run cmake/qmake on your new computer ? if not, this is probably the cause.
-
@GGG03 Hi. have you run cmake/qmake on your new computer ? if not, this is probably the cause.
@ankou29666 What do you mean with run qmake?
I mean, I don't remember doing it when I first installed QT. -
@GGG03 Hi. have you run cmake/qmake on your new computer ? if not, this is probably the cause.
@ankou29666 , @GGG03
I don't think this is because the OP might not have done the first compilation yet.Only the very first error message is relevant: it cannot find
#include <QWidget>
. All the other errors will go once that is resolved.Since you say it compiles fine on the new machine I assume you have installed Qt correctly, so that Creator can find it. Check that. Check how your code completion model should be find
QWidget
/Qt header files. Maybe try changing the C++ code completer from clang or whatever the default is to the simpler inbuilt one, while you resolve this. -
@ankou29666 , @GGG03
I don't think this is because the OP might not have done the first compilation yet.Only the very first error message is relevant: it cannot find
#include <QWidget>
. All the other errors will go once that is resolved.Since you say it compiles fine on the new machine I assume you have installed Qt correctly, so that Creator can find it. Check that. Check how your code completion model should be find
QWidget
/Qt header files. Maybe try changing the C++ code completer from clang or whatever the default is to the simpler inbuilt one, while you resolve this.@JonB I'm not 100% sure but as far as I remember I saw that same kind of problem when I got my project from windows to Mac less than a week ago.
-
If the collection of files in the OneDrive location includes the Qt Creator generated AppLEEM_2.0.pro.user file from the other machine then it may well have Project settings that do not match your current machine. You should shut down Qt Creator, delete/rename the AppLEEM_2.0.pro.user file, restart Qt Creator and then reopen the AppLEEM_2.0.pro project file with Qt Creator.