setting up qt creator 2.7 on windows - qt

I am beginning to learn Qt gui programming and for this I downloaded Qt Creator 2.7.1 for win xp.
I installed it but when i try to create a new project it asks me to select a kit. There are no kits installed so they say me to setup one. I installed the MinGW compiler (and selected the mingw-g++.exe but i thinks its not right). But when I set up the Qt version they ask me to locate the qmake.exe which i cant find anywhere on my system.
please guide me on setting up the creator so that i have a painless experience in the future. Please tell me the correct steps and the right files to choose.

Qt Creator is not enough to create applications using Qt framework. You also need Qt framework (the Qt libraries) installed, see the download page here and depending on the version of Qt you want you can download one of these:
Qt 5.0.2 for Windows 32-bit (MinGW 4.7, 650 MB) - this one is kind of an SDK and include a MinGW, Creator and obviously the Qt framework, but if you added your MinGW to system's path you will have to remove it from there, because if you have multiple versions in path you will get some errors when you build applications
or
Qt libraries 4.8.4 for Windows (minGW 4.4, 317 MB) - for this i think you need to install MinGW your self - but i'm not sure about that

Related

Unable to add QT version

I'm using QT for the first time to build a GUI. I'm following this Tutorial.
I followed the steps one by one as shown in the screenshot below.
Select the project
I selected Other project>>Empty qmake Project. Next I'm prompted to add the Kits.
Add Kits
I add the Kits, but in the next Tab "Qt Versions", there are no QT versions.
No QT Version
I figured i didn't install any QT Versions during the installation process. so I opened up the "Add or remove programs" and found that these are the components I have installed.
Installed components
Will these suffice to build a Desktop GUI using QT creator or are there any other components I have to install as well?
So, for a first try, I suggest using the MinGW compiler, since it is installed by Qt Maintenance Tool.
If you need to use the MSVC compiled Qt like the one selected in your pick, but you need also to install Visual Studio since you need the MSVC Compiler. If you also need to debug an MSVC Qt Application via QtCreator you need to manually configure the CDB, since the one installed with Visual Studio is not detected by Qt Creator.
Those pieces of information are related to MSVC2017 and Visual Studio 2017. If you intend to use MSVC2019 I don't know how QtCreator manages that.
About your situation is strange, you installed the MSVC Qt so they should be detected in QtCreator (tools -> options -> kits -> Qt Versions). I suggest to completely uninstall Qt and restart the process selecting just the MinGW 64-bit, QtCreator and MinGW Compiler 7.

QT offline installer version misunderstanding

Trying to download Qt offline installer since online failed installation.
Trying to download from official releases: https://download.qt.io/official_releases/qt/5.9/5.9.5/
But why there is version 5.9.5 while default online installer is ver 3.0.4 ?
The online installer is a tool, and the current version is 3.0.4. It can download any Qt version from the internet (hence online)
The offline installer has everything you need for a specific Qt version (e.g. 5.9.5) packed in the installer (hence offline).
For each Qt version that the single online installer can install, there will be a separate offline installer.
By downloading the online installer you are becoming able to use the online Qt installer not the Qt itself. Downloading it is
By using online Qt installer you can install lots of things about Qt like Qt designer Qt 5.10.1, Qt 5.4.2 etc. And These are inside the Qt online installer.
Do not worry about the version of the online installer. It has the latest Qt version.(Beside the old ones).
If you are not sure what you are doing. You can use this link to download Qt:
https://download.qt.io/archive/qt/

An installer for Qt apps

I've created a Qt calculator app using Qt Creator 3.6.0 purely in C++ code (I didn't use Designer)
I would like to know how to use Qt to make it installable for publishing.
I ran the app in both Release and Debug modes and have both folders of the two.
I also downloaded and installed Qt Installer Framework Opensource 2.0.1 for my Qt Creator 3.6.0 (the IDE I use for Qt).
And I also have the .dll files needed to run the .exe file.
I've searched the Web for it. But since I'm a novice in Qt I can't do the works properly, or I don't understand. (They seem complicated)
Now, is there any straight forward method to use an installer for the app to make as platform independent as possible?
If so, what installer? And how to do the process? This is the first time for me.

Installing Qt5.1.1 and making it run with Visual Studio 2010

I am trying to install Qt5.1.1 and have already installed VStudio 2010 Pro, but I stll get the error saying Qt needs a compiler set up to build.
I looked it up, and I only find very complex solutions that are impossible for me to implement.
Can anyone give me specific directions on how I can get Qt5.1.1 working in my laptop?
Btw in case you couldn't tell, I'm a newbie.
Thanks
First, ensure that your Visual Studio installation contains a 32-bit compiler (the official Visual Studio 2010 packages only support 32-bit compilers)
Then, ensure that you've downloaded and installed one of the packages that are marked "Qt 5.1.1 for Windows 32-bit (VS 2010)" from http://qt-project.org/downloads
If Qt Creator still doesn't auto-detect your compiler, add it manually: http://qt-project.org/doc/qtcreator-2.8/creator-tool-chains.html
If you had to add your compiler manually, also add a Kit to combine your compiler with your Qt libraries: http://qt-project.org/doc/qtcreator-2.8/creator-targets.html

Downloading Qt 4.8.3

I haven't used Qt for months. But now when i want to download the latest version, I can't find the download for the last version in Qt project website there is only Qt SDK with version 4.8.1 but in the commercial version website there is 4.8.3.
so where can I download Qt SDK with Qt 4.8.3 for linux (ubuntu) ? please
I have installed the SQK with apt-get i just, and i downloaded Qt 4.8.3. what i need now is the instruction to compile it with MySQL plugins.
there is a file in the download that points to the old qt.nokia.com website so i can't find these instructions.
http://qt-project.org/downloads
try this link it might work
The details about 4.8.3 are also given in the link. I'm using Qt creator it is working fine for me.
Note for Qt 4.6.3 and Qt 4.7.3 development
Qt SDK 1.2 contains only the latest targets for developing applications for Symbian platforms. If you wish to work with Qt 4.6.3 for Symbian or Qt 4.7.3 for Symbian^3 and Symbian Anna please use Qt SDK 1.1.2. Once you have installed Qt SDK 1.1.2, to enable use of the earlier targets and App TRK, don’t run the SDK update as this will remove the features you need.
Please be aware that if you want to use the Qt SDK 1.1.2 and Qt SDK 1.2.1 on the same computer, you should install them into separate user accounts.
Qt SDK 1.1.2 can be found here.
This is what mentioned in the site. I think there is no such version for Qt SDK

Resources