Where can I find Qt example code?
-
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.htmlAt 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 -
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?
-
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?
-
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? -
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.
-
@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.htmlMaybe thats why I seemed to be the only one looking for them ;)
-
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 :)