[Solved] Examples button disabled in Welcome page
Yes. The creator package only installs QtCreator. If you want the whole shabang, get yourself a copy of the SDK. I would recommend you try out the 1.1 beta version. It will get you Qt itself, the samples, and all of the tools (including Qt Creator).
I see the Qt 4.7.2 lib have the Qt Example and demo :)
[quote author="Andre" date="1301320553"]Yes. The creator package only installs QtCreator. If you want the whole shabang, get yourself a copy of the SDK. I would recommend you try out the 1.1 beta version. It will get you Qt itself, the samples, and all of the tools (including Qt Creator). [/quote]
Thanks Andre, after I reinstall the SDK and I can see the samples now. But it doesn't make any sense not to include samples in Qt Creator installer.
It makes perfect sense, IMHO. The Qt Creator installer is a tool. The Qt examples belong to the Qt library itself. They don't belong with Creator; you would not even be able to build them when you just install Creator.
Maybe I don't understand Qt Creator/Qt library structure. From my view, Qt Creator is tool that same as MS VS, we can use the tool to create a "Hello world" application. What I'm looking for just examples how to create this kind of application. I'm not sure is that the same situation. I installed VS and look for samples but I need to install .net framework because samples are come from .net framework not from VS, without .net framework you won't able to build "Hello world" application.
Btw, this is just my through. Thank you very much for your help, i much appreciated.
The point is, QtCreator is an IDE, Qt itself is the Framework.
With QtCreator, you can use different Qt version side by side. And you also need the tool chain (mingw, MS C++ tool chain, ...).
The examples are packed with the Qt libraries and headers.
So the minimum requirement to work with examples and create an appis:
- QtCreator or some other IDE
- the needed tool chain
- one Qt version for this tool chain
The combination can be installed by installing the Qt SDK (which contains all 3).
Observingly I don't know much about Qt Creator / Qt library. Just wonder if I download Qt Creator does it come with any Qt library? If not, is that mean we can use it to create any kind of "Hello world" application?
Thank you very much for all of you spent time to explain to me, I really appreciated that.
You can create any kind of C++ application. Also MFC if you want. You just need the dlls and the headers. For MFC, the wizard support is not there, as it is not a use case for Creator, but it's possible. The libraries in the Creator directory are needed by Creator itself.
Having QtCreator and a Toolchain (e.g. mingw) you can create binaries ()e.g hello world, or also a web server or some other stuff).
If you want to use Qt itself, you need the headers and the libs. And it doesn't matter if you use QtCreator or MSVS to manage the sources and build the project.
Please forgive me first if my questions are look stupid to you :)
If we can use Qt Creator to create C++ application, how come in Getting Started(Welcome) page, the button next to Explore Qt C++ examples is disable? Are we suppose to run these examples without installing Qt libraries?
While Qt creator can in principle be used on its own as a code editor, it can not be used on its own to build complete programs, let alone complete Qt programs. You need a tool chain (compiler, linker, etc.) and you need need libraries to link against (like Qt). Neither are provided with a standalone distribution of Qt Creator. That standalone package is meant for people who already have all the rest, and simply want (a newer version of) Qt Creator.
Qt Creator does come with the Qt libs, but only in a binary form that is of little use to you (a set of .dll files compiled with some MS compiler which you don't know and without header files). If you want libs that you can use to build your own program, you need the full package.
Bottomline: just get yourself the full SDK, and save yourself the headache of what you do and what you don't need to get started.
bq. Bottomline: just get yourself the full SDK, and save yourself the headache of what you do and what you don’t need to get started.
If you are on windows, use the online installer. It saves download time as it only downloads, what you need. For example, I don't want to have all these mobile packages, but I want Qt src --> very easy :-) Ond less download.
Thanks guys, no more question ask, everything is clear now :) thank you for your patience.