Qt examples are not visible in QtCreator (Mageia 6)

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Qt examples are not visible in QtCreator (Mageia 6)

Postby xtapetae » Sep 14th, '17, 21:47

I suspect this is a bug but I am not sure.
    There seems to be nothing wrong with QtCreator.
    The examples are installed and Qt knows about this:
    Code: Select all
     $qmake -query  QT_INSTALL_EXAMPLES
    /usr/lib64/qt5/examples

    According to: https://wiki.qt.io/Qt_Examples_in_Qt_Creator there should be an entry for the available examples in QtCreator.ini (path: ~/.config/QtProject/),
    With my installation this is not the case. I installed the examples, reinstalled QtCreator and everything but the examples did not turn up.
    The docs say that for installed QT-Versions:
    Qt Creator looks up 'examples-manifest.xml' and 'demos-manifest.xml' files from subdirectories of the Qt doc directory (the one qmake -query QT_INSTALL_DOCS returns).

    The path given in my case is: /usr/share/doc/qt5. However, in the subdirectories there is just one examples-manifest.xml in the dir: /usr/share/doc/qt5/qtwebsockets/. That already looks a bit weird to me. in any case the xml-file shows some websocket-related examples but they do not show up either. There is no other examples-manifest.xml file on my system.
    When looking at the file /usr/share/doc/qt5/qtwebsockets/examples-manifest.xml I cannot make sense of the paths. One example:
    Code: Select all
    <example name="Echo Client Example" docUrl="qthelp://org.qt-project.qtwebsockets.562/qtwebsockets/qtwebsockets-echoclient-example.html" projectPath="websockets/echoclient/echoclient.pro" imageUrl="qthelp://org.qt-project.qtdoc.562/qtdoc/images/qt-codesample.png">


      <description>
      <![CDATA[
        Describes how to use the WebSocket API for creating a simple echo client.
      ]]>
      </description>
    <tags>client,echo,sockets,web</tags>
    <fileToOpen>websockets/echoclient/main.cpp</fileToOpen>
    <fileToOpen>websockets/echoclient/echoclient.h</fileToOpen>
    <fileToOpen mainFile="true">websockets/echoclient/echoclient.cpp</fileToOpen>
    </example>

    As the file docUrl="qthelp://org.qt-project.qtwebsockets.562/qtwebsockets/qtwebsockets-echoclient-example.html shows up in
    /usr/share/doc/qt5/qtwebsockets/qtwebsockets-echoclient-example.html I conclude that the prefix qthelp:// is incorrect in the xml-file. Or the path is not correct. But this does not help for the missing other examples.
At that point I'm stuck. I'd appreciate help...
xtapetae
 
Posts: 15
Joined: Aug 29th, '13, 21:10

Re: Qt examples are not visible in QtCreator (Mageia 6)

Postby doktor5000 » Sep 16th, '17, 15:02

We had a similar issue in the past, the cause was broken or missing OpenGL acceleration - if it wasn't set up properly or if you tested in in a VM then it simply would not show any examples.

But your issue on mga6 seems to have already been reported, feel free to follow that bugreport and comment that you are also affected:
https://bugs.mageia.org/show_bug.cgi?id=20908
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest