Bug 1212588
Summary: | Only english GUI and examples not found | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sven Anders <anders> |
Component: | qt-creator | Assignee: | Itamar Reis Peixoto <itamar> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 21 | CC: | davejohansen, itamar, jreznik, ltinkl, manisandro, rdieter |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-04-17 09:47:00 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sven Anders
2015-04-16 17:45:00 UTC
Concerning the examples: a search through the qt-creator source code shows that examples to list are retreived from "examples-manifest.xml" files in various locations. For Qt4, such a file exists (/usr/lib64/qt4/examples/examples-manifest.xml), and indeed installing qt-examples results in the Qt4 examples being visible in the Examples section of the welcome screen. For Qt5, there does not appear to be any /usr/lib64/qt5/examples/examples-manifest.xml (and I don't see it in the respective qt5-examples packages of other distros also), so I'm not sure how exactly they are supposed to be loaded. FWIW, the relevant code for loading the examples is in src/plugins/qtsupport/exampleslistmodel.cpp in the qt-creator sources. If you can also take a minute for further investigations, it would be appreciated. For the locale: scanning at the code in src/plugins/coreplugin/generalsettings.cpp in the qt-creator sources (in particular GeneralSettings::fillLanguageBox() and hasQmFilesForLocale()), it seems that unless the qt translations for a specific language are installed, the respective qt-creator translations also aren't made available. So make sure you have installed qt5-qttranslations, from the strace you posted it does not appear to be the case. Thanks for your quick answers. 1. Regarding the localization problem: Installing the "qt5-qttranslations" package fixed my problem. It would be nice, if the qt-creator package would add this package as a "recommends" or "suggests". 2. The problem with the examples seems to be a little bit harder.. Running the qtcreator in "examples debug mode" shows the following: #> QTC_DEBUG_EXAMPLESMODEL=1 qtcreator Reading Help/InstalledExamples from settings: () "Reading file "/usr/share/qtcreator/welcomescreen/qtcreator_tutorials.xml"..." It doesn't even try to read any examples manifest?! And strace does not show any try to access it too... When I install the precompiled QTCreator I see the following: QTC_DEBUG_EXAMPLESMODEL=1 ./qtcreator.sh "Reading file '/home/anders/work/Qt5.2.1/Tools/QtCreator/share/qtcreator/welcomescreen/qtcreator_tutorials.xml'..." "Reading file '/home/anders/work/Qt5.2.1/5.2.1/gcc_64/doc/activeqt/examples-manifest.xml'..." "Reading file '/home/anders/work/Qt5.2.1/5.2.1/gcc_64/doc/activeqt/demos-manifest.xml'..." "Reading file '/home/anders/work/Qt5.2.1/5.2.1/gcc_64/doc/qdoc/examples-manifest.xml'..." "Reading file '/home/anders/work/Qt5.2.1/5.2.1/gcc_64/doc/qdoc/demos-manifest.xml'..." The documentation on this webpage did not help either: https://wiki.qt.io/Qt-Creator-Qt-Examples I think I need some more time to test it... Hmmm. I think I solved this problem too. I had to install the packages: qt5-qtbase-doc qt5-qtbase-examples So maybe two additional package to add as a recommendation. Thanks for your time! Oh, qt5-qtbase-doc is not being built in rawhide, so missed that package in my debugging effort. Filed as #1212750. Concerning soft dependencies (aka Suggests), yum does not handle those, you'll need dnf which is default in F22+. But I'd wait for some guidelines on their use appearing before adding them in the spec. Thanks for your debugging! I've also suggested in #1212750 to put /usr/share/doc/qt5/qdoc/examples-manifest.xml in qt5-qtbase-examples, so that installing qt5-qtbase-examples alone is sufficient to get the examples appearing. |