Examples don't show up
-
@cristian-adam How did you install Qt? Did you install it like I show in the question? I searched for QtCreator.ini in my device and I got four files named QtCreator.ini, all are in QtCreator source directory which I haven't built yet.
@gabrield-droid I used the Qt SDK. But, after one Qt Creator run, you should have a QtCreator.ini file in
~/.config/QtProjecton Linux.See https://doc.qt.io/qtcreator/creator-how-to-find-settings-files.html for more information.
-
@gabrield-droid I used the Qt SDK. But, after one Qt Creator run, you should have a QtCreator.ini file in
~/.config/QtProjecton Linux.See https://doc.qt.io/qtcreator/creator-how-to-find-settings-files.html for more information.
@cristian-adam I found it. What should I do now?
-
@cristian-adam I found it. What should I do now?
-
@gabrield-droid said in Examples don't show up:
QtCreator.ini
This is the QtCreator config file. Should be: ~/.config/QtProject/QtCreator.ini
This post is deleted! -
@jsulm
Only does the version appear, not the projects

I have added these lines in the
[Help]in theQtCreator.ini:InstalledDocumentation=/opt/Qt6/doc InstalledExamples=Qt 6.10.1|/opt/Qt6/doc|/opt/Qt6/examplesIs there more something wrong?
-
@jsulm
Only does the version appear, not the projects

I have added these lines in the
[Help]in theQtCreator.ini:InstalledDocumentation=/opt/Qt6/doc InstalledExamples=Qt 6.10.1|/opt/Qt6/doc|/opt/Qt6/examplesIs there more something wrong?
@gabrield-droid You could try running Qt Creator as:
$ QT_LOGGING_RULES=qtc.examples=true ./qtcreatorSee the code loading the examples at https://github.com/qt-creator/qt-creator/blob/18.0/src/plugins/qtsupport/exampleslistmodel.cpp#L67
-
@gabrield-droid You could try running Qt Creator as:
$ QT_LOGGING_RULES=qtc.examples=true ./qtcreatorSee the code loading the examples at https://github.com/qt-creator/qt-creator/blob/18.0/src/plugins/qtsupport/exampleslistmodel.cpp#L67
@cristian-adam I still don't see the examples. But, in the terminal, it returns something like this:
qtc.examples: Reading Help/InstalledExamples from settings: QList("Qt 6.10.1|/opt/Qt6/doc|/opt/Qt6/examples") qtc.examples: Adding examples set displayName= "Qt 6.10.1" , manifestPath= "/opt/Qt6/doc" , examplesPath= "/opt/Qt6/examples" qtc.examples: Skipping "Qt 6.10.1 (Qt6)" because it either is remote, or its QT_INSTALL_EXAMPLES and QT_INSTALL_DEMOS, or QT_INSTALL_DOCS paths are not readable directories, or there are no documentation files.Maybe, you could help with that
-
@cristian-adam I still don't see the examples. But, in the terminal, it returns something like this:
qtc.examples: Reading Help/InstalledExamples from settings: QList("Qt 6.10.1|/opt/Qt6/doc|/opt/Qt6/examples") qtc.examples: Adding examples set displayName= "Qt 6.10.1" , manifestPath= "/opt/Qt6/doc" , examplesPath= "/opt/Qt6/examples" qtc.examples: Skipping "Qt 6.10.1 (Qt6)" because it either is remote, or its QT_INSTALL_EXAMPLES and QT_INSTALL_DEMOS, or QT_INSTALL_DOCS paths are not readable directories, or there are no documentation files.Maybe, you could help with that
@gabrield-droid Check the content of /opt/Qt6/doc and /opt/Qt6/examples - is there something inside? Doe you have read access there?
-
@gabrield-droid Check the content of /opt/Qt6/doc and /opt/Qt6/examples - is there something inside? Doe you have read access there?
@jsulm In
/opt/Qt6/doc/there are two folders calledconfigandglobal. The contents of/opt/Qt6/examplesare shown in the picture below:

Both folders are owned byrootand have their permissions set torwxr-xr-x -
C cristian-adam referenced this topic on
-
Hi, I've solved this problem. In README.md, I found an extra step to install the documentation. I should've run these commands after installing Qt:
cmake --build . --target docssudo cmake --build . --target install_docsBut, since I had deleted my qt-build and /opt/Qt6/examples, I did these following to make the examples, along with the documentation, accessible from within Qt Creator:
mkdir qt-build && cd qt-build~/qt-sources/configure -prefix /opt/Qt6 -skip qtwebengine -nomake tests -make examples -- -DQT_BUILD_EXAMPLES_BY_ DEFAULT=OFF -DQT_INSTALL_EXAMPLES_SOURCES=ONcmake --build . --parallel --target docssudo cmake --install . --component examples_sourcessudo cmake --build . --parallel --target install_docsAfter that, the examples and documentation are accessible from Qt Creator:

Screenshot of Examples
Screenshot of Help -
G gabrield-droid has marked this topic as solved