- There seems to be nothing wrong with QtCreator.
- Code: Select all
$qmake -query QT_INSTALL_EXAMPLES
/usr/lib64/qt5/examples- 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>
The examples are installed and Qt knows about this:
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:
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.