Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Where is the source code ?
I'm teaching myself Qt coding using a tutorial entitled "Getting Started Programming with Qt" that I obtained from
In the subsection entitled "Subclassing QWidget" the last sentence states :-
"We will not look at the implementation of quit() slot and the main() function, but you can check out the source code if you want to."
As there doesn't seem to be a link to the source code for this tutorial, does anyone know where the code can be downloaded from ?
Thanks in advance.
[edit: fixed typo in title, Eddy]
andre last edited by
Sure, the source code can be found here:
Sources can also be installed with your SDK though.
Guest last edited by
The Qt source is also available at the download page: http://qt.nokia.com/downloads/downloads#qt-lib
However, I think he's asking about the source for the "getting started" tutorial.
koahnig last edited by
In addition to Andre's comment you are looking at the older version 4.7 of the tutorials.
The "newer ones of version 4.8":http://qt-project.org/doc/qt-4.8/gettingstartedqt.html apparently do not have the comment.
Thanks all for those amazingly fast replies.
I visited the gitorious page but didn't find what I was looking for. I did find a couple of items for QNotepad but I don't think that was the code that I'm searching for.
Yes, I am searching for the source code for the "getting started" tutorial.
As for using the older version 4.7. Crumbs, I know thing move fast these days but ... jings. I've only had this on my PC for a couple of weeks! Talk about greased lightning! ;-)
All the examples can be found under directory where your Qt installed.
For example, source code of the tutor you mentioned will located in
Thanks for the reply. II downloaded a binary package,
directly from qt.nokia.com and performed a system wide install logged-in as root, using su -. This placed Qt Creator in folder /opt/qtcreator-2.4.1. That's the background.
In response to your reply I have performed a "Find Files/Folders" search through the resultant directory tree starting at /opt/qtcreator-2.4.1 This failed to return any folder labelled examples. Perhaps there's another package I need to/should have downloaded ?
Please note that, Qt Creator is only a IDE which is optional part of Qt development, while the term "Qt" normally stands for Qt Library.
And QtSDK = Qt Library + Qt Creator + ...
Only Qt Library is a must for Qt developer!
Qt Library can be installed using your system software package too, such as apt-get, yum, etc.
Hi Robot Herder,
Thanks for the replies. Though they are interesting in their own right, I feel that the thread is beginning to drift away from my central question.
This is, where do I find the source code for the tutorial “Getting Started Programming with Qt” ?
As requested earlier, I've searched my installation and found that I don't have the ...\examples\tutorials\gettingStarted\gsQt directory mentioned. I therefore wondered if my installation was incomplete, particularly with respect to documentation.
All you need is Qt library, all the examples and tutorials are included in the library.
QtCreator is just IDE, without Qt library, you can not develop Qt Application, and you can not find example or documentions.