[Issue] Qt Creator doesn't allow me to add files to projects, only the .pro file
-
I installed Qt Creator this week, I'm trying to make it work.
After I start a project, namely a Empty qmake Project, I want to add source files. Yet the options for adding files to the project are disabled.
Also, when I open Examples, only the .pro file appears on the project and I get 3 Issues messages:
- Variable QMAKE_CXX.COMPILER_MACROS is not defined. toolchain.prf
- Project ERROR: failed to parse default search paths from compiler output
- Error while parsing file /path/to/example . Giving up.
How can I fix this issue? Help is very welcome. Thank you.
I'm using Qt Creator 4.14.2 on a Windows 7, with Qt 5.15.2.
Have a nice day.
-
@rogerccs Why do you try with such an ancient version of Qt and Qt Creator?
Anyway, the 3 errors you mention sound like you are missing a compiler. On windows, 2 main compilers are not compatible (MinGW vs. MSVC) so you have to get the correct version of Qt for your compiler. Otherwise it won't work.
-
@sierdzio I believe these (Qt Creator 4.14.2 and Qt 5.15.2) are the compatible versions of Qt Creator and Qt for Windows 7.
The kit I'm using has the following specs:
- Qt version: 5.15.2 (manually added by chossing qmake.exe in mingw81_64 directory)
- Compilers: for C and C++ are in the bin for MinGW 7.3 (Auto-detected)
- Debugger: System GDB from MinGW 7.3 (Auto-detected)
Note 1: Was unable to link the Qt directory for Auto-detection of Qt version
Note 2: I have another issue, might be related or I might start another thread about it: Whenever I try to Open Command Prompt, Qt Creator stops working (crashes) and I have to restart Qt Creator. -
-
Nope, no warnings.
After reinstallation, I get the following message after clicking on a Example:
No valid settings file could be found.
All settings files found in directory "\path\to\example.pro.user" were unsuitable for the current version of Qt Creator, for instance because they were written by an incompatible version of Qt Creator, or because different settings path was used.Which versions of Qt Creator and Qt should I use for Windows?
-
@rogerccs said in [Issue] Qt Creator doesn't allow me to add files to projects, only the .pro file:
example.pro.user
Just remove this file and restart Qt Creator.
-
@rogerccs said in [Issue] Qt Creator doesn't allow me to add files to projects, only the .pro file:
And after loading the example, the .pro.file is remade.
Yes, that's correct.
Deleting the .pro.user file does not solve the issue. I get the same message.
I don't know then, sorry. Your setup looks good. I'm not using Windows 7 since many years, maybe it's something specific to that version.