Bug 1218403

Summary: Qt Creator does not show qt6's examples after `zypper in qt6-*-examples`
Product: [openSUSE] openSUSE Tumbleweed Reporter: David shiran <sauntor>
Component: DevelopmentAssignee: E-Mail List <opensuse-kde-bugs>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fabian, lyhyhl
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David shiran 2023-12-26 15:29:16 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?
Comment 1 Christophe Marin 2023-12-27 09:34:57 UTC
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
Comment 2 David shiran 2023-12-30 19:35:21 UTC
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!
Comment 3 Fabian Vogt 2023-12-30 19:57:52 UTC
(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.
Comment 4 null 2024-06-19 16:18:46 UTC
(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
Comment 5 Christophe Marin 2024-06-19 18:33:41 UTC
(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