Where is the source code ?



  • Hi,

    I'm teaching myself Qt coding using a tutorial entitled "Getting Started Programming with Qt" that I obtained from

    http://doc.qt.nokia.com/4.7/gettingstartedqt.html

    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.

    Stuart

    [edit: fixed typo in title, Eddy]



  • Sure, the source code can be found here:
    http://qt.gitorious.org/qt/qt

    Sources can also be installed with your SDK though.



  • 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.


  • Moderators

    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.



  • Hi all,

    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! ;-)

    Thanks again,

    Stuart



  • Hi Stuart,

    All the examples can be found under directory where your Qt installed.

    For example, source code of the tutor you mentioned will located in
    @
    %QTDIR%\examples\tutorials\gettingStarted\gsQt
    @

    Regards,

    Debao



  • Hi Debao,

    Thanks for the reply. II downloaded a binary package,

    qt-creator-linux-x86-opensource-2.4.1.bin

    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 ?

    Thanks,

    Stuart



  • Hi stuarte,

    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!

    Regards,

    Debao



  • 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.

    Thanks again.

    Stuart



  • Hi Stuart,

    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.

    Regards,

    Debao


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.