Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Where is the source code ?
Forum Updated to NodeBB v4.3 + New Features

Where is the source code ?

Scheduled Pinned Locked Moved General and Desktop
11 Posts 4 Posters 6.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stuarte9
    wrote on last edited by
    #1

    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]

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

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

      Sources can also be installed with your SDK though.

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          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.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            stuarte9
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dbzhang800
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • S Offline
                S Offline
                stuarte9
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dbzhang800
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dbzhang800
                    wrote on last edited by
                    #9

                    Qt Library can be installed using your system software package too, such as apt-get, yum, etc.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      stuarte9
                      wrote on last edited by
                      #10

                      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

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        dbzhang800
                        wrote on last edited by
                        #11

                        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

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved