FS#48728 - [qtcreator] Where is qt5-examples

Attached to Project: Arch Linux
Opened by HKKH (HKKH) - Monday, 28 March 2016, 13:39 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 06 April 2016, 19:54 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello!
Why Qtcreator-3.6.1 don't show qt examples? Only 3 examples!
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 06 April 2016, 19:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  qt5-examples 5.6.0-2
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 29 March 2016, 02:23 GMT
And you did install qt5-examples right?
Comment by HKKH (HKKH) - Tuesday, 29 March 2016, 06:14 GMT Comment by Stewart McLay (jambo) - Wednesday, 06 April 2016, 15:53 GMT
I have the same problem. I did some investigation. If you set the environment variable QTC_DEBUG_EXAMPLESMODEL and run qtcreator from the terminal then you will see the following output...

$ export QTC_DEBUG_EXAMPLESMODEL=1
$ qtcreator
"Reading file \"/usr/share/qtcreator/welcomescreen/qtcreator_tutorials.xml\"..."
"Reading file \"/usr/share/doc/qt/activeqt/examples-manifest.xml\"..."
"ERROR: Item \"COM App Example (ActiveQt)\" broken: projectPath \"/usr/share/doc/qt/activeqt/qtactiveqt/activeqt/comapp/comapp.pro\" empty or does not exist"
"ERROR: Item \"Hierarchy Example (ActiveQt)\" broken: projectPath \"/usr/share/doc/qt/activeqt/qtactiveqt/activeqt/hierarchy/hierarchy.pro\" empty or does not exist"
...

The problem is the projectpath attribute in the examples-manifest.xml files are incorrect. I think you need to regenerate these files using the qdoc tool but first check your environment so the correct projectpath value are written. The correct project path for the above example on my workstation is /usr/share/doc/qt/examples/activeqt/comapp/comapp.pro.

There is more information available at https://wiki.qt.io/Qt_Examples_in_Qt_Creator

Thinking about it, the bug might actually be in the qt5-doc package as this package contains the examples-manifest.xml files. Some collaboration between qt5-examples and qt5-doc might be required to fix the bug.

Loading...