Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt creator missing examples, lubuntu



  • Lubuntu 20.04, qt5 installed as part of process. Qt creator examples are empty, found them loaded to doc area, but still don’t show up in examples of qt creator. Advised to go to qmake version, this is set to auto. No files indicated, how do I set this up to utilise examples. Please excuse my ignorance new to qt arena


  • Lifetime Qt Champion

    Hi @peterpies,

    so how did you install Qt? With the Ubuntu package manager? In that case, you will need to install the examples package(s) too. Distributions package all parts separately, e.gl qtbase5-examples.

    Here is my list on Ubuntu 18.04:

     $ apt-cache search qt | grep examples                                                                                               
    qtbase5-examples - Qt 5 base examples
    qtsvg5-examples - Qt 5 SVG examples
    csoundqt-examples - example scores for csoundqt
    libqcustomplot-doc - Qt C++ widget for plotting. Documentation and examples
    libqglviewer-doc - OpenGL 3D viewer library - documentation and examples
    libqhttpengine-examples - HTTP server for Qt applications - examples
    libqtscript4-doc - Qt 4 QtScript bindings API documentation and examples
    libu1db-qt5-examples - Qt5 binding and QtQuick2 plugin for U1DB - examples
    mathgl - library for scientific graphs (utilities and examples)
    pyqt5-examples - Examples and demos for PyQt5
    python-qt4-doc - Documentation and examples for PyQt4
    python-qtawesome-doc - documentation and examples for QtAwesome
    python-qwt5-doc - Python Qwt5 technical widget library, documentation and examples
    qelectrotech-examples - examples files for qelectrotech
    qt3d5-examples - Qt 5 3d examples
    qt4-demos - Qt 4 examples and demos
    qt4-demos-dbg - Qt 4 examples and demos debugging symbols
    qt5serialport-examples - Qt 5 serial port examples
    qtcharts5-examples - Qt chart examples
    qtconnectivity5-examples - Qt 5 Connectivity examples
    qtdeclarative5-examples - Qt 5 declarative examples
    qtlocation5-examples - Qt 5 Location and Positioning examples
    qtmultimedia5-examples - Examples for Qt 5 Multimedia module
    qtquickcontrols2-5-examples - Qt 5 Qt Quick Templates 2 examples
    qtquickcontrols5-examples - Qt 5 Quick Controls examples
    qtscript5-examples - Qt 5 script examples
    qtsensors5-examples - Qt 5 sensors examples
    qtspeech5-examples - Speech library for Qt - Examples
    qttools5-examples - Qt 5 tools examples
    qtvirtualkeyboard5-examples - Qt virtual keyboard examples
    qtwayland5-examples - Qt 5 Wayland examples
    qtwebchannel5-examples - Web communication library for Qt - Examples
    qtwebengine5-examples - Qt WebEngine - Examples
    qtwebkit5-examples - Qt 5 webkit examples
    qtwebkit5-examples-doc - Qt 5 webkit examples documentation
    qtwebkit5-examples-doc-html - Qt 5 webkit examples HTML documentation
    qtwebsockets5-examples - Examples for Qt 5 Web Sockets module
    qtwebview5-examples - display web content in a QML application - Examples
    qtxmlpatterns5-examples - Qt 5 XML patterns examples
    

    Regards



  • @aha_1980 Thanks very much for your prompt reply, QT5 is installed with lubuntu, I did install the docs, examples and development after. I moved the examples to the doc directory. It stated in Qt doc to check version if no examples are seen which I did, all kits state autodetected no indication of files actually used. Hope this helps. I ran the command you used above and yes indicates similar.

    labelme-examples - Image Polygonal Annotation with Python, examples
    csoundqt-examples - example scores for csoundqt
    libqcustomplot-doc - Qt C++ widget for plotting - documentation and examples
    libqglviewer-doc - OpenGL 3D viewer library - documentation and examples
    libqhttpengine-examples - HTTP server for Qt applications - examples
    mathgl - library for scientific graphs (utilities and examples)
    pyqt5-examples - Examples and demos for PyQt5
    python-pyqt5.qwt-doc - Python Qwt6 technical widget library, documentation and examples
    python-qtawesome-doc - documentation and examples for QtAwesome
    qelectrotech-examples - examples files for qelectrotech
    qt3d5-examples - Qt 5 3d examples
    qt5serialport-examples - Qt 5 serial port examples
    qtbase5-examples - Qt 5 base examples
    qtcharts5-examples - Qt chart examples
    qtconnectivity5-examples - Qt 5 Connectivity examples
    qtdatavisualization5-examples - Examples for Qt 5 Data Visualization module
    qtdeclarative5-examples - Qt 5 declarative examples
    qtgamepad5-examples - Qt 5 Gamepad examples
    qtlocation5-examples - Qt 5 Location and Positioning examples
    qtmultimedia5-examples - Examples for Qt 5 Multimedia module
    qtnetworkauth5-examples - online account access for Qt apps - Examples
    qtquickcontrols2-5-examples - Qt 5 Qt Quick Templates 2 examples
    qtquickcontrols5-examples - Qt 5 Quick Controls examples
    qtremoteobjects5-examples - Qt Remote Objects examples
    qtscript5-examples - Qt 5 script examples
    qtscxml5-examples - Qt SCXML examples
    qtsensors5-examples - Qt 5 sensors examples
    qtserialbus5-examples - Qt 5 Serialbus serial bus access examples
    qtspeech5-examples - Speech library for Qt - Examples
    qtsvg5-examples - Qt 5 SVG examples
    qttools5-examples - Qt 5 tools examples
    qtvirtualkeyboard5-examples - Qt virtual keyboard examples
    qtwayland5-examples - Qt 5 Wayland examples
    qtwebchannel5-examples - Web communication library for Qt - Examples
    qtwebengine5-examples - Qt WebEngine - Examples
    qtwebsockets5-examples - Examples for Qt 5 Web Sockets module
    qtwebview5-examples - display web content in a QML application - Examples
    qtxmlpatterns5-examples - Qt 5 XML patterns examples

    I do hope this helps, thanks in advance for your assitance


  • Qt Champions 2019

    @peterpies said in Qt creator missing examples, lubuntu:

    I moved the examples to the doc directory

    Why?



  • @jsulm sorry I should of explained that more fully, I downloaded the examples in a tar file from source, and the documentation said they were expected to be located in the the doc directory, which is why I moved the downloaded items there. I did nothing extrainious to the apt actions of installing the examples etc. Hope this helps


  • Qt Champions 2019

    @peterpies Did you install QtCreator using apt? If the examples packages are installed they should actually show up in QtCreator.


  • Lifetime Qt Champion

    @jsulm said in Qt creator missing examples, lubuntu:

    @peterpies Did you install QtCreator using apt? If the examples packages are installed they should actually show up in QtCreator.

    You didn't read from the beginning, did you? :)


  • Qt Champions 2019

    @aha_1980 I see that Qt was installed using apt, but don't see anything related to QtCreator.


  • Lifetime Qt Champion

    @jsulm and the examples are part of Qt, not of Creator. So if he don't install them, they will simply be not there.


  • Qt Champions 2019

    @aha_1980 said in Qt creator missing examples, lubuntu:

    and the examples are part of Qt

    I know. My point is that the distribution specific QtCreator build may look somewhere else for examples packaged by same distribution.



  • @jsulm please let me explain more fully how it was all installed, as I may be confusing people and I believe this is ignorance and not your failings in any way.
    I did an upgrade full of lubuntu from 19.10 to 20.04, via the full system upgrade method, and not reinstall from live iso. During this process part of the install, installs qt5 complete, including creator. After install qt all components including creator were available in programming section of desktop. Designer works, creator starts upon problems, tutorials are available BUT NO EXAMPLES. So looked around found location of examples for version and downloaded via tar, extracted and moved examples folder to doc folder as suggested by documentation. Checked version in creator as suggested by documentation if examples are missing, this stated qmake is auto configured but no indication of file or location. Hence searched more and installed doc and examples via apt as can be seen. Still have same problem no examples seen in creator. Testing building interface just basic with designer all seemed ok. As can be seen from the screen grab I posted of apt cache it appears more or less the same as yours, including qtbase etc. Sorry if I have not provided adequate info., please state anything else you require and I will obtain it immediately to aid your analysis of this issue. Thanks once again


  • Qt Champions 2019

    @peterpies I don't have a solution for this problem, but you can open the examples manually in QtCreator ("File/Open File or Project..."). You just need to know where those are. You can find out doing:

    apt-file list qtbase5-examples
    

    Same for other Qt packages with examples.
    If you found the location of an example open its pro file in QtCreator.



  • @jsulm thanks for help and honesty, I was going to try the build but wanted to find out which qmake it would use first, I presumed it would build with the default value know to qt. I will do as you suggest and get back to you if that’s ok



  • @peterpies jsulm, look like some progress, have located all the QT setup system variables, and inserted the qmake located there to the version section of creator, now the examples show up in creator, have not tested them yet but will and report back, thanks for the right push


  • Qt Champions 2019

    @peterpies said in Qt creator missing examples, lubuntu:

    to find out which qmake it would use first

    Which qmake is used is defined by the Kit you're using.



  • @jsulm , that is what I assumed, I thought when it said auto configure that it would get the correct one for desktop etc. I fear that this whole kit install does not have the correct paths/assignments set correctly, but, I will keep checking as this type of problem was reported in an earlier version where headers and the like where not found, but present in another directory. Thanks once again for your help it’s driving me to at least understand some of the framework of qt


Log in to reply