Qt Creator no option for Qt application

I installed Qt Creator v2.6.2 based on Qt 4.8.3 (32-bit). When I started a new project, I could not find the "Qt C ++ Application" tab.

it displays only libraries, other projects, projects without Qt and import projects

What am I missing here?

thanks b4

+4
source share
4 answers

Go to the Tools → Options → Build and Run> Qt Options tab and check if your installed Qt versions are recognized or not. If the list is empty, it means: for some reason, Qt Creator stopped detecting your Qt library.

To solve this problem, click the "Add" button in this dialog box " Tools → Options → Build and Run> Qt Versions " and find the installed file "qmake.exe". It should be in the bin directory where you installed the Qt library (for example, C> Qt> 4.8.4> bin> qmake.exe). If you still haven't found out, you should look for the easiest way, like installing the "qt SDK", which takes care of everything.

+5
source

Try installing the qt installation in the creator’s settings. These are tools -> options -> Build and Run -> Qt and add one if there is no binding. I'm not sure if this helps, but worth a try.

You can also create a project manually and import it into the creator.

Create a main.cpp file with content like

#include <QApplication> #include <QWidget> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget w; w.show(); return a.exec(); } 

And create a .pro file with the contents:

 QT += core gui TARGET = Test SOURCES += main.cpp 

After that, try importing the .pro file into the creator.

0
source

You probably haven’t set up Qt build tools. You must have istalled Qt Creator, Qt libraries, MinGW compiler (for Qt 4 - MinGW 4.4).

In "Tools" → "Options" → "Build and Run" you must specify all the templates (for the MinGW compiler, for qmake and create a chain of tools for using the MinGW compiler with a specific qmake ). So, you will have a working chain of tools for creating Qt projects.

Good luck

0
source

I have found the answer. It turns out that qmake.exe, which I pointed to, is in the folder

 C:\Qt\4.8.4\qmake\qmake.exe 

which is wrong and the path should be

 C:\Qt\4.8.4\bin\qmake.exe 

now "Qt C ++ Application" is shown on the tab

thanks for all the help b4

0
source

Source: https://habr.com/ru/post/1469469/


All Articles