11

After upgrading to Ubuntu 14.04 I removed the official qtcreator in order to install the modified version from the software center because I'd like to try the SDK.

Fortunately, the docs are now included in the official installation. Unfortunately, there is still something missing: the official examples. Luckily I had my old and official installation still on my harddrive and then, after some tries, I copied the examples to /usr/lib/x86_64-linux-gnu/qt5/examples and change the permission. Then QtCreator detected examples and I was able to select them from the examples section.

But there are still two problems remaining:

Firstly, I am not able to find all examples e.g the network examples (like the fortuneclient) are still missing. For the sake of testing I change the permission of the example folder to 777. Therefore permission shouldn't be a problem.

Secondly, some helping documents to the examples are missing. Therefore I get a normal editor and a blank right part after clicking on an example.

  • O.K. this help but installed QT Creator main help page is still missing. – user317608 Aug 17 '14 at 12:39
  • Under Ubuntu 17.04, I also had to install qt5-default, which is a "kit" needed to even open the basic examples. – Joey Adams Jun 7 '17 at 4:34
22

To get the Qt5.2 examples available in Qt Creator/Ubuntu SDK, you basically need two extra packages, open a Terminal with Ctrl+Alt+t an type:

sudo apt-get install qtbase5-examples qtbase5-doc-html

Restart Qt Creator to get:

enter image description here

  • I had to install a few more packages before examples and qtcreator help were working. In particular qtcreator-doc. Use 'apt-cache search qt |grep -E "doc|demo|tut|examp"' to see what you might wish to install. Some packages I have installed: 'dpkg-query -l |awk '{print $2}' |grep qt |grep -E "doc|demo|tut|examp" |fmt' qt4-demos qt4-doc qt4-doc-html qt5-doc qt5-doc-html qtbase5-doc qtbase5-doc-html qtbase5-examples qtcreator-doc – gaoithe Aug 24 '14 at 22:51
7

I don't have enough reputation to comment on Sylvain's answer so my answer here is to back it up and expand as per gaoithe's comments.

In my case running Qt Creator 3.0.1 based on Qt 5.2.1. (on Ubuntu 14.04)

I had qtbase5-examples qtbase5-doc-html already installed, but was still missing network and multimedia examples (and others evidently, but these were the ones I cared about).

After installing the following additional packages:

qt4-demos qt4-doc qt4-doc-html qt5-doc qt5-doc-html

Now I have a shed load of examples that I didn't know were missing.

Thanks

  • 1
    OP asked for qt5 examples, those are are using the Qt4 API. But it's always good to have them installed. +1 – Sylvain Pineau Mar 26 '15 at 19:52
  • In my case I think the absence of some of the Qt5 examples was resolved by installing the qt5-doc qt-5-doc-html packages in particular. I did have some examples in the Qt5 directory that were not showing until these packages were installed. – Pobbel Mar 28 '15 at 1:17
  • For the docs the package qt5-doc is important. – Bernhard Essl Sep 22 '15 at 16:00
0

In Linux Mint 18.1 using Qt Creator 3.5.1 based on Qt 5.5.1, I had to run:

sudo apt-get install qtbase5-examples qtbase5-doc-html qt4-demos qt4-doc qt4-doc-html qt5-doc qt5-doc-html

Then I got a substantial number of Examples shown in the Welcome Screen.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.