QT creator setup on windows - qt

Hey guys thanks for looking at this question. I am attempting to learn some UI programming and was hoping to use QT creator to get started. I am a babe in the woods for Qt Creator 4.6.0. And I can't seem to setup QT creator to work on windows 7. When I go to manage the project or tools>options>build and run I really don't know what to fill out?
If all I do is create a new project and attempt to "build all" I get the error:
Could not determine which "make" command to run. Check the "make" step in the build configuration.
I found alot of post on how to fix this but I haven't figured out how to get them to work for me.
Example 1
Example 2
Example 3
Example 4
I am attempting to figure out what exactly I am doing wrong. It might have something to do with not selecting the correct compiler and Qmake file? So far what I do is.
Step 1: Create New Project
Step 2: I then go into kit selection
Step 3: I select manage
Step 4: select the Manual(desktop) nothing is automatically populated
As for the rest of the tabs I have:
compilers tab
debug tab
CMAKE tab
After I setup all the tabs should I have a functioning project?
Ok well after looking I guess there isn't a Qmake file installed with QT just to be clear on the installation I am wondering which of the boxes should I check during installation. It comes up like the following picture
QT Installation

Related

No valid kits found - Mac

I installed brew installed qt and qt-creator.
When trying to create a new qmake empty project I get stuck on the Kit selection page saying that no valid kits were found, and can't go any farther. I tried searching the web but I did not find my answer.
Can anyone help me please?
Thanks !
Well even I had the same problem, but it was because during the installation process you have to select the Qt version and then do the installation. This installs all the necessary components but increases the file size.

How to add QSerialPort library in QT4.8.7

For an Embedded based project, I need to use QT4.8.7. I installed the QT 4.8.7 cross compiler in /usr/local/ directory. As QT4.8.7 do not have support QSerialPort, I am having hard time dealing with it. But as per this article we can add the QSerialPort library support in QT4.8.7.
I am following the points mentioned below the heading Build and Install from QtCreator but the problem is, in the first point they have mentioned to download and unpack the QSerialPort source but at the link there is no downloadable file. I also didn't get the point no. 4 which says
add a new make "Build Step" and write to the "Make arguments" the install target
Can anyone please explain these points.
In the articles there are links to Qt Serial Port git repo:
git://code.qt.io/qt/qtserialport.git
Alternatively you can find tarballs on Qt download server for each release e.g http://download.qt.io/official_releases/qt/5.8/5.8.0/submodules/qtserialport-opensource-src-5.8.0.tar.gz
About the build instructions, if you followed the steps, it is pretty clear.
add a new make "Build Step" and write to the "Make arguments" the install target
requests you to add a new build step to the list of build steps, this new build step should be a "Make" build step. And within the field "Make arguments" of this new build step add "install".
Again its pretty clear once you are in Qt Creator in the right page.
Also you can take a look at Qt Creator documentation ofr more details:
http://doc.qt.io/qtcreator/creator-build-settings.html#build-steps

Problems with QT 5 deployment

I've attempted to follow the instructions on deploying Qt to Windows, but I am stuck on step number 1. In it, it tells you to:
cd C:\path\to\Qt
configure -static any other options you need
Unfortunately, I can't get the Qt DOS prompt to recognize the "configure" command despite attempting to use it in virtually every folder under my Qt installation. Does anyone know where this command is store? Everything else about my project is working great with Visual Studio, but I just can't seem to figure out the deployment.
I've Googled the crap out of this and tried both the Qt and the regular Windows command prompts. Any help would be greatly appreciated!
Thanks
EDIT: For clarity, I have tried dragging all of the .dlls needed to run my program (by running it and finding the ones I get errors on), but all that happens is I stop getting errors when trying to run my app. If I double click it with the .dlls in the same folder, nothing happens at all.
Are you sure you need the static Qt build? Note that you must static build the actual Qt framework for that, and only after that you can build your application.
If yes, make sure you have the Qt source code, because configure is part of the source code of Qt, it's a tool that configure the Qt build.
The step refers to path of Qt Source directory e.g. C:\QtSDK\QtSources\\
As you can see in qt5 source tree there is a file configure.bat
You need to run that with static option, so it will configure Qt for static linking.
Then you need to re-build Qt to make your new configuration to take effect.

"Design" button grayed out in Qt Creator for QML Project

I'm on a Kubuntu 11 system and trying out my first Qt Quick project. As this is Kubuntu I'm just running with the Qt that came with it, which has worked fine so far.
I asked Qt Creator to create the sample "Hello World" project from Qt Quick. But the design button was grayed out, as were the run buttons.
At first when I went into the Projects menu under "Run Settings" it said Qt version: [Invalid Qt Version]. Pushing the "Manage Qt versions" button brings up a tree control that looks like this:
v -- Auto-detected
| |
| +---Qt in PATH /usr/bin/qmake-qt4
|
+--- Manual
At the bottom of the dialog it says "Found Qt version 4.7.2, using mkspec linux-g++ (Desktop)"
I found out that I could get the "Invalid Qt version" message to go away by manually choosing to install QmlViewer from the app repositories. You'd think it would say something more like "Qml Viewer not found, please install it" but...oh well. Now it says Qt Version: [Qt in PATH].
So that's fixed, and the Qml app runs. But the "Design" button is still grayed out. Qt Designer is installed as an application, and its plugin shows in the "About Plugins..." list. The design button is enabled in ordinary (non-Qt-Quick) projects when I click on a form file, just not for .qml files.
in the QtCreator, go to Help -> About plugins -> Select "QT Quick".
Restart QtCreator and then select the ui.qml files. It should work now
In my case it wasn't showing up because I had my cpp file open. When I double clicked on the .ui file, the design button became active.
Solved it while writing the question.
To make a long story short: this appears to be a known issue in general with installing Qt Creator through the ubuntu repositories as opposed to using the Qt SDK Installer from Nokia:
http://qt.nokia.com/downloads
(That installer seems to do the work of making sure the proper SDK elements are installed, while the linux package repositories lag in getting things right.)
Another option seems to be building Qt from sources. But uninstalling the Qt Creator I got through KPackageKit and instead using the installer from Nokia was less involved, and worked for me in this case.

Problem installing QT on Vista

I have downloaded QT SDK LGLP (Creator + libraries) 4.6 and I am having problems compiling projects. After install I have added C:\Qt\2010.02\qt;C:\Qt\2010.02\qt\bin to PATH and added QTDIR env varaible containing C:\Qt\2010.02\qt, the I run "configure -platform win32-g++" to compile it. Everything went good.
I the tried to use QT Creator to create and compile a project.
The problem is everytime I try to compile I get the following error message:
No valid Qt version set. Set one in Tools/Options
Error while building project GUITest
When executing build step 'QMake'
Canceled build.
When I go to Tools/Options the manual version is set to v4.6.2, Location c:\qt\2010.02\qt\bin\qmake.exe. The auto detected version is set to even though I have added the dirs in Path. Is there something I am doing wrong here? Has anyone encountered this problem in Vista.
I have been working on this for 2 days, change configurations, reinstalled etc...
The QtDir value is compiled into the
qmake-binary. You can only change this
by recompiling qmake and passing on a
different value to qt-configure (I'm
not sure which setting or variable is
passed on to qmake) When using
precompiled, downloaded binaries,
you'll have to keep the QtDir at
c:\Qt\4.6.2
EDIT:
What I said was incorrect. The locations of qmake, moc,... are located in the file:
<Qt>/4.x.x/.qmake.cache
Try uninstalling/reinstalling qt creator
But i highly suspect you didnt compile qt properly as this problem seems really odd. I had alot of problems compiling so i know myself from the past mistakes.
Make sure you carefully reread install instructions for your environment, also if you have visual studio you need to follow procedure to install it in compliance with it. Same if you use another c compiler
If nothing goes right, the easiest way to install qt imo is directy from their git hub, chec installin qt from git, on their git site there is wiki that explains how to do it
its really easy and after that all you need to do is add the qt to creator
Hey, it QT emulators have lot of problems in vista, i have tried several times,it didnt work for me.. it works well with windows XP. though ill tell you in brief what you need to do
1)install latest perl
2)install carbide c++ editor
3)install Qt SDK
4)install s60 or N97 emulators
make sure that except perl all the items which are mentioned above will be in same drive,and also
make sure that folder names which you give while installation should not have spaces at all..
i.e suppose if you are going to place any of the above items in a folder whose name is having spaces it will not work.
if you have any doubts feel free to ask.

Resources