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.
Related
I have just updated the Qt Creator to 6.0.0 and the QML-Designer is not available anymore.
I have opened a project, created with Qt Creator 5.0.3, and after the update is not possible to edit the form:
The installed version of Qt is 5.15.2.
How to open *.ui.qml files?
Looks like they're disabling it to try and steer people to Qt Design Studio.
"The integrated Qt Quick Designer is now disabled by default. Qt Creator will open .ui.qml files in Qt Design Studio. This is a step towards a more integrated workflow between Qt Design Studio and Qt Creator (video). Qt Quick Designer is still there, you can manually enable it again by checking the QmlDesigner plugin in Help > About Plugins." from here
I'm trying to setup qtcreator using Microsoft Enterprise WDK.
I want to build MSVC and UWP apps, but I do not want to install MS VisualStudio.
Does anyone know howto setup debugger cdb, c and c++ compiler, ... for qtcreator. Since MS EWDK is unzipped in a folder like C:\Dev qtcreator cannot auto-detect it.
I also flipped through the QT documentation, but it is confusing me.
I still have no solution to integrate EWDK into qtcreator.
But there is an alternative to install a "minimum" Microsoft environment for qtcreator:
Install the Visual Studio Build-Tools, which is new as of 2017 and only select the build-tools for C++
Install only the debugger from Windows SDK
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.
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
I want to use QtCreator and MSVC as a compiler instead of MinGW. I successfully compiled Qt source code with MSVC 2010. As you would have guessed, I have MSVC 2010 installed on my machine. I also registered MSVC version of Qt in QtCreator, but now the problem is that I can’t select MSVC toolchain in qtcreator.
So far, I found out that QT_INSTALL_LIBS and QT_INSTALL_BINS are not correctly configured for MSVC version of qt binaries. I guess this could be the problem, but I don’t know how I should configure that variables.
Here's the screenshot
Check if you have define the environment variable QTDIR (this can be done in command line, using set command). This allows Qt Creator to auto-detect the value.
Also, could you try to rename the folder not using 'c++', instead use e.g. 'cplusplus', and see if this could also resolve the problem.
You need to set your QMAKESPEC environment variable to "win32-msvc2010" (or create the variable if you don't have it), then restart QtCreator. This tells Qt and QtCreator that you are using the msvc compiler of Visual Studio 2010 for 32bit windows applications.
That should do the trick.
PS: If you have any Windows Explorer windows open you need to close these too after setting the environment variable.
PPS: Press [windows-key][Pause] to quickly access the system properties dialog