QT creator and Qt ( just itself) difference - Starting QT - c++

I'm asking for a good re-confirmation! (don't take it otherwise).. As I'm quite new in the Qt platform, I've found it quite confusing!! In Windows platform, you've: Qt 5.4.1 for Windows 32-bit (VS 2012, OpenGL) which is a whooping 644 MB file! & also the info about "Qt Creator" in download says:
Blockquote Qt Creator 3.3.1 is included in the Qt 5.4.1 binary packages. If you need a standalone installer, please select the file according to your operating system from the list below to get the latest Qt Creator for your computer
--- this a layman would understand as Qt Creator is the GUI of Qt IDE
&
also you need to download "Qt 5.4.1 for Windows" which is a whooping 644MB !!
so, WAIT FOR A MOMENT...
Blockquote is this the case? or I've to download just the Qt Creator for my work?

Marco's comment explains it all. I don't know why you're bothered with the size of the package. What i want to add is, you can download Qt alone if you'd like to use a different IDE eg. CodeBlocks and set it up for Qt development but it's advisable to use Qt creator with Qt. Qt creator can't build and debug any code (except perhaps, you want to use it for other reasons) without Qt because Qt contains the necessary tools for that purpose.
So download Qt Creator alone if you already have Qt or want to update your old Qt creator and download Qt 5.4.1 for Windows if you want to do development on windows and already have Qt creator installed or any other IDE that can be setup for Qt development.

Related

Can't import/configure Qt project

I have cloned the following GitHub project to my hard drive.
https://github.com/leozide/leocad
I have also installed Qt Creator 4.5.0. However, when I try to load the project in Qt Creator, it says there are no valid "kits", and will not let me configure the project. (Presumably, this is a necessary step before I can build the project.)
What do I need to do to get this to work? Thanks.
Windows 10 Home, Qt Creator 4.5.0
Qt is a cross platform framework, thus supporting a bunch of c++ compilers like MinGW GCC, Clang ...etc. a Kit is a set of Qt packages designed for a specific C++ compiler and implements the Qt libraries for that compiler, this is what you need to compile your project in Qt creator .. and they are not part of Qt Creator itself, they must be downloaded. below steps are suitable to get Qt fully functioning.
The Qt open source.
There are two ways to get Qt, the first is to download the source code packages/files and build Qt yourself (but this would be needed if you have a reason to build qt packages from sources yourself). this not covered here.
Steps to install and Configure prebuild Qt Open Source.
Download Qt Online Installer for Windows, usually from this location Qt Online Installer for Windows, this is an online installer for Qt.
Run the downloaded installer, it will guide you through few steps like creating an Qt account and logging in ...
You will end up to the component selection screen and this is the most part.
Expand the Qt Selector tree, you will get 2 groups, A list of available prebuild Qt versions, And to the bottom a Tools selector tree.
make your selection of which Qt version you wish to be downloaded and installed.
Then expand the tree for that version and Choose the components of your interest, these are package kits for a list of compilers .. (For example: a windows user might choose "MinGw x.x.x 32" suite for development under windows .. and "Android" component to develop Android Apps on Qt Creator.
Go down to the Tools tree, expand and select which components to download and install. For Windows usually you need : Qt Creator Debugger, MinGW x.x.x (same as above) and Qt installer framework (which is a maintenance tool for Qt upgrades ...etc).
If you have selected MinGw kit in Qt Version , then you must download the corresponding MingW framework, from Tools branch, unless you have it.
After all selections are made press Next and complete the installation.
Note: with a clean installation of Qt, it configures itself automatically and no further configurations are needed -> Kits are automatically configured based on your installed components.

Make "Add Qt Sources" work for Qt SDK on Linux (NOT built from source)

This is similar to my question about Step into Qt Sources from Qt Creator on Windows (NOT built from source), but I can't make it work for Linux.
Instead of building from source, I have downloaded the Qt SDK installer, and I've installed Qt to /opt/Qt, and I have the sources at /opt/Qt/5.4/Src.
I cannot step into Qt Sources, so I tried adding a Source Mapping using "Add Qt Sources":
I have tried mapping /var/tmp/qt-src to /opt/Qt/5.4/Src, /opt/Qt/5.4/Src/qtbase, and /opt/Qt/5.4/Src/qtbase/src, none of which worked.
What am I doing wrong? Is the source mapping not /var/tmp/qt-src, or is the target mapping wrong? Does "Add Qt Sources" work at all for the Qt SDK?
I saw a suggestion in a forum thread that it's because the Qt SDK for Linux ships only stripped binaries, while it ships both debug and release DLLs for Windows (which would explain why it worked for Windows, but not for Linux).

Qt Designer in Windows along with Qt Creator

In Linux, I had got Qt Designer installed along with Qt Creator. I had installed Qt Creator in Windows, but I am not able to find the Qt Designer anywhere. Also, I cannot build Qt applications using Qt Creator. I would like to know whether I need to install Qt SDK in windows to get Qt Designer.
Just get the full bundle:
http://download.qt-project.org/official_releases/qt/5.0/5.0.2/qt-windows-opensource-5.0.2-mingw47_32-x86-offline.exe
For what I remember, QtCreator includes the designer somehow, and it is a cool program to use!
Qt-Designer is part of the "PyQt4"-Package for Windows.

Qt Creator don't have "Qt Gui Application" to choose when creating new project

After installing Qt Creator, from http://qt-project.org/downloads - "Qt Creator 2.5.2 for Windows (31 MB)" when I choose File->New File [...]
http://i.imgur.com/iMw8u.png
It's probably stupid question, but don't now why it is so.
Install the Qt SDK instead. When you download Qt Creator, all you get is the IDE, you don't actually get Qt or a compiler. The SDK is much easier.
Edit: The SDK can be found here, at least at the time of writing, and it seems that from Qt 5 and onwards, the default download includes both Qt and Qt Creator.

Codeblocks and Qt -- how to work with them?

I am new to codeblocks and Qt. I would like to create some nice interfaces with buttons, lists, combo box and so on using Qt. Can someone help me, give me some links from where I can start my journey? I didn't find anywhere how to include qt designer in codeblocks in order to work with it.
Any help is appreciated.
P.S I am working in Ubuntu. I did install code::blocks 10.05 . I also have QT Designer, Creator, LInguist and Assistent.
When you have Qt Creator, you don't need anything else unless you have any specific preference for Code::Blocks or any other IDEs.
Qt Creator has an integrated debugging interface too (somewhat similar to Visual Studio).
Here is the Qt Creator manual and here you can find details on How to manage projects using Qt Creator.
If you already have all the Qt tools (Creator, Designer, etc.) then why not just use Qt Creator?
It is a wonderful little IDE and is perfect for Qt developing. I actually prefer using it on Ubuntu (on Windows I use the VS Add-In for VS 2010).
The only thing that takes getting used to is adding dependencies which you must directly edit the .pro file for. See http://doc.qt.io/qt-5/qmake-project-files.html