Bugzilla – Bug 1218403
Qt Creator does not show qt6's examples after `zypper in qt6-*-examples`
Last modified: 2024-06-19 18:33:41 UTC
As the title says, after install qt 6 examples via zypper, reopen qtcreator, it will not show any qt6 example! But if you install qt5 examples, it shows. Is it a bug or can one fix it himself by some way?
In Qt6, the examples are compiled targets, there's no way in the build system to install the example sources. I suggest reporting it to https://bugreports.qt.io
I think it's in a problem introduced by packaging, the difference between qt5/qt6 examples package is: ```bash $ rpm -ql qt6-base-examples /usr/lib64/qt6/examples/corelib /usr/lib64/qt6/examples/corelib/ipc /usr/lib64/qt6/examples/corelib/ipc/localfortuneclient /usr/lib64/qt6/examples/corelib/ipc/localfortuneclient/localfortuneclient /usr/lib64/qt6/examples/corelib/ipc/localfortuneserver /usr/lib64/qt6/examples/corelib/ipc/localfortuneserver/localfortuneserver ... ``` ```bash $ rpm -ql libqt5-qtbase-examples /usr/lib64/qt5/examples /usr/lib64/qt5/examples/README /usr/lib64/qt5/examples/corelib /usr/lib64/qt5/examples/corelib/corelib.pro /usr/lib64/qt5/examples/corelib/ipc /usr/lib64/qt5/examples/corelib/ipc/README /usr/lib64/qt5/examples/corelib/ipc/ipc.pro /usr/lib64/qt5/examples/corelib/ipc/localfortuneclient /usr/lib64/qt5/examples/corelib/ipc/localfortuneclient/client.cpp ... ``` Do you see the difference? qt5's examples package ships the sources files, but qt6's ships BINARY files!
(In reply to David shiran from comment #2) > I think it's in a problem introduced by packaging, the difference between > qt5/qt6 examples package is: See the previous comment: It's a change in Qt 6 introduced by upstream.
(In reply to Fabian Vogt from comment #3) > (In reply to David shiran from comment #2) > > I think it's in a problem introduced by packaging, the difference between > > qt5/qt6 examples package is: > > See the previous comment: It's a change in Qt 6 introduced by upstream. The upstream suggested copying the example source though. https://bugreports.qt.io/browse/QTBUG-86302
(In reply to null from comment #4) > (In reply to Fabian Vogt from comment #3) > > (In reply to David shiran from comment #2) > > > I think it's in a problem introduced by packaging, the difference between > > > qt5/qt6 examples package is: > > > > See the previous comment: It's a change in Qt 6 introduced by upstream. > > The upstream suggested copying the example source though. > > https://bugreports.qt.io/browse/QTBUG-86302 you can run `zypper si <package name>`, the sources will be in /usr/src/packages/SOURCES. Closing, there's no action needed for this bug report