Qt Creator skipped examples

Installed Qt Creator 2.8 in ArchLinux Installed qt5- * (* like every bundled package) using pacman

there were no repositories, so I used one in AUR, qt5-examples

Examples

are installed in the directory / usr / share / doc / qt / examples

qmake-qt5 -query says:

QT_SYSROOT: QT_INSTALL_PREFIX:/usr QT_INSTALL_ARCHDATA:/usr/lib/qt QT_INSTALL_DATA:/usr/share/qt QT_INSTALL_DOCS:/usr/share/doc/qt QT_INSTALL_HEADERS:/usr/include/qt QT_INSTALL_LIBS:/usr/lib QT_INSTALL_LIBEXECS:/usr/lib/qt/libexec QT_INSTALL_BINS:/usr/lib/qt/bin QT_INSTALL_TESTS:/usr/tests QT_INSTALL_PLUGINS:/usr/lib/qt/plugins QT_INSTALL_IMPORTS:/usr/lib/qt/imports QT_INSTALL_QML:/usr/lib/qt/qml QT_INSTALL_TRANSLATIONS:/usr/share/qt/translations QT_INSTALL_CONFIGURATION:/etc/xdg QT_INSTALL_EXAMPLES:/usr/share/doc/qt/examples QT_INSTALL_DEMOS:/usr/share/doc/qt/examples QT_HOST_PREFIX:/usr QT_HOST_DATA:/usr/lib/qt QT_HOST_BINS:/usr/lib/qt/bin QT_HOST_LIBS:/usr/lib QMAKE_SPEC:linux-g++ QMAKE_XSPEC:linux-g++ QMAKE_VERSION:3.0 QT_VERSION:5.1.0 

which means the examples are in the right place

But they are not shown in Qt Creator!

Qt Creator Examples

How can I bring them to qtcreator?

PS: I do not want to forget about the solution and install the SDK.

+7
qt qt-creator archlinux
source share
5 answers

Just install the examples from AUR PKGBUILD: https://aur.archlinux.org/packages/qt5-examples/

+3
source share

Go to the installation location for the examples and open the .pro project file with qt-creator.

Alternatively, if you just want to create and run an example. Go to the qmake directory and then make , and then just run the output

Also, if you strictly require the examples to be displayed in the IDE, try running with administrator privileges, since the installation directory for the examples may require administrator privileges.

+1
source share

I also use archlinux and have the same problem. Despite the lack of examples and demos, qmake-qt5 -query prints the absence path.

Qt5 examples now seem to be on AUR (Arch User Repository).

To get them

+1
source share

My situation is that in the qt example folder there is no permission to read and execute for non-root users, it is fixed and everything is fine. In your case:

 sudo chmod +rx /usr/share/doc/qt/examples 
0
source share

make sure you run qt-opensource-linux-x86-android-5.4.0.run as follows:

 $sudo ./qt-opensource-linux-x86-android-5.4.0.run 

please do not forget that "sudo" or you will find that there are no examples in qtcreator.

0
source share

All Articles