Reputation: 452
I've installed the Qt Creator v2.6.2 based on Qt 4.8.3(32-bit). When I started new project, I couldn't find the "Qt C++ Application" tab.
it only shows libraries, other projects, Non-Qt projects and import projects
what am I missing here?
thx b4
Upvotes: 4
Views: 7506
Reputation: 51
Go to Tools -> Options -> Build & Run > Qt Versions tab and check whether your installed Qt versions are recognized or not. If the list is empty that means: for some reason Qt Creator has stopped detecting your Qt library.
To solve this problem, Press the "Add" button in that dialog "Tools -> Options -> Build & Run > Qt Versions" and locate your installed 'qmake.exe' file. It should be in the bin directory of where you installed the Qt library (e.g. C > Qt > 4.8.4 > bin > qmake.exe ). If still not recognized, you should look for the easiest way like installing "qt SDK" which takes care of everything.
Upvotes: 5
Reputation: 452
I've found the answer. It turns out that the qmake.exe which I pointed to is at 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 the "Qt C++ Application" has shown on the tab
thx for all the help b4
Upvotes: 0
Reputation: 7173
You probably haven't configured Qt building tools. You must have istalled Qt Creator, Qt libraries, MinGW compiler (for Qt 4 -- MinGW 4.4).
In Tools -> Options -> Build & Run you must specify all pathes (for MinGW compiler, for qmake
and create tool chain to use MinGW compiler with concrete qmake
). So, you'll have working tool chain to build Qt projects.
Good luck!
Upvotes: 0
Reputation: 53
Try setting the qt installation in the creator options. It's tools -> options -> Build & Run -> Qt versions and add one if there's no bind installations. I am not sure whether that helps, but it's worth a try.
You can also create the project manually and import it into the creator.
Create a main.cpp file with contents like
#include <QApplication>
#include <QWidget>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWidget w;
w.show();
return a.exec();
}
And the create a .pro file, with contents:
QT += core gui
TARGET = Test
SOURCES += main.cpp
After that try to import your .pro file into the creator.
Upvotes: 0