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 can I find Qt example code?
Qt 6.11 is out! See what's new in the release blog

Where can I find Qt example code?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 2.0k 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.
  • P Offline
    P Offline
    PavlovsDog
    wrote on last edited by
    #1

    I am trying to save a little list with data to a file so I wanted to check out the Address Book Example:
    http://doc.qt.io/qt-4.8/tutorials-addressbook.html

    At the bottom it says:

    The tutorial source code is located in examples/tutorials/addressbook.
    

    But I don't understand where that path is. Is it on the webpage, my drive or some git repo?
    I can't find it anywhere.

    Thank you!
    -Thomas

    tekojoT 1 Reply Last reply
    0
    • P PavlovsDog

      I am trying to save a little list with data to a file so I wanted to check out the Address Book Example:
      http://doc.qt.io/qt-4.8/tutorials-addressbook.html

      At the bottom it says:

      The tutorial source code is located in examples/tutorials/addressbook.
      

      But I don't understand where that path is. Is it on the webpage, my drive or some git repo?
      I can't find it anywhere.

      Thank you!
      -Thomas

      tekojoT Offline
      tekojoT Offline
      tekojo
      wrote on last edited by tekojo
      #2

      Hi @PavlovsDog
      It refers to your installation of Qt. For example my Windows machine has Qt installed in c:\Qt\ and the examples are in c:\Qt\Examples\Qt-5.9\

      Just to make sure, you did install the examples from the maintenance tool?

      1 Reply Last reply
      2
      • P Offline
        P Offline
        PavlovsDog
        wrote on last edited by PavlovsDog
        #3

        I am working with QtCreator on a Raspberry with Raspbian.

        Not sure about the maintenance tool. How can I check for that? Or what would I need to install to get the maintenance tool?

        1 Reply Last reply
        0
        • P Offline
          P Offline
          PavlovsDog
          wrote on last edited by
          #4

          Is it not possible to download the examples somewhere online?
          If it comes only with the installation, which package on linux would i need to download to get the examples?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi and welcome to devnet,

            It depends on which examples you are interested in and the distribution you are using. For Debian, you have the QtBase examples in the qtbase5-examples package.

            Otherwise you can also clone Qt 5 from code.qt.io or download the sources archive matching your Qt version here.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            P 1 Reply Last reply
            4
            • SGaistS SGaist

              Hi and welcome to devnet,

              It depends on which examples you are interested in and the distribution you are using. For Debian, you have the QtBase examples in the qtbase5-examples package.

              Otherwise you can also clone Qt 5 from code.qt.io or download the sources archive matching your Qt version here.

              P Offline
              P Offline
              PavlovsDog
              wrote on last edited by
              #6

              @SGaist said in Where can I find Qt example code?:

              Otherwise you can also clone Qt 5 from code.qt.io or download the sources archive matching your Qt version here.

              Thank you! Downloaded it there.
              After that I realized the examples are also offered for download directly at the bottom in each section of the tutorial.
              http://doc.qt.io/qt-4.8/qt-tutorials-addressbook-part6-example.html

              Maybe thats why I seemed to be the only one looking for them ;)

              1 Reply Last reply
              2
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Great !

                Since you have everything to continue learning now, please mark the thread as solved using the "Topic Tools" button so that other forum members may know a solution has been found :)

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                5

                • Login

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