Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 568838

Summary: dev-qt/qt*:5 implement USE=examples
Product: Gentoo Linux Reporter: karpi <karpi.web>
Component: EclassesAssignee: Qt Bug Alias <qt>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: admnd, gerion.entrup, idarktemplar, ionen, mva, orzel, qwertyqwertyq, rose
Priority: Low    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/gentoo/gentoo/pull/4541
See Also: https://bugs.gentoo.org/show_bug.cgi?id=669268
Whiteboard:
Package list:
Runtime testing required: ---

Description karpi 2015-12-19 22:56:50 UTC
After emerging and first start of qt-creator, there is no examples.
Also No examples USE flag for this version.


Reproducible: Always
Comment 1 karpi 2016-01-07 23:46:30 UTC
Examples are inseparable part of IDE.
Especially for beginning pragrammers.
As developers of qt-creator says on their own page:

http://doc.qt.io/qt-5/qtexamplesandtutorials.html
"Open and run examples within Qt Creator's Welcome mode."

http://doc.qt.io/qtcreator/creator-build-example-application.html
"You can test that your Qt installation is successful by opening an existing example application project."

So on gentoo Qt installation isn't successful for now.
Comment 2 Davide Pesavento gentoo-dev 2016-01-07 23:58:25 UTC
(In reply to karpi from comment #1)
> Examples are inseparable part of IDE.
> Especially for beginning pragrammers.
> As developers of qt-creator says on their own page:
> 
> http://doc.qt.io/qt-5/qtexamplesandtutorials.html
> "Open and run examples within Qt Creator's Welcome mode."
> 

Those are *Qt* examples, not qt-creator's, and they should be installed by qt modules, not by qt-creator. So what is this bug about exactly?

> http://doc.qt.io/qtcreator/creator-build-example-application.html
> "You can test that your Qt installation is successful by opening an existing
> example application project."
> 
> So on gentoo Qt installation isn't successful for now.

That's just one way of "testing" that the installation was successful. The lack of examples doesn't mean it wasn't successful.
Comment 3 karpi 2016-01-08 00:40:12 UTC
If you install qt-creator from ebuild and run it,
examples within Qt Creator's Welcome mode are empty.

They should be included in order to explore and try qt in action:
http://doc.qt.io/qt-5/all-examples.html

(there is not just my opinion, but all official qt doc webs assuming that, as showed in links in previous post)
Comment 4 karpi 2016-01-19 10:38:52 UTC
Best solution is:
- hardmask qt-creator in portage
- install it directly from original binary distribution: http://www.qt.io/download/
- or older desired version from: https://download.qt.io/archive/qt/
Comment 5 Thomas Capricelli 2016-03-25 09:57:28 UTC
Whether from an external ebuild or not, I agree that examples are expected when installing qt-creator.

Independantly of qt-creator, are qt5 examples available somewehere in gentoo? I could not find them. My best guess would be qtdemo, but it's currently only available for qt4 in the portage tree.
Comment 6 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2016-04-08 16:10:06 UTC
I'd support pesa's bug renaming: examples should NOT install with qt-creator, but with either separate package (like thare was qtdemo for Qt3/Qt4), or with related Qt modules by "example" USE-flag.

// although, it is a bit unclear how it would be with qtandroid and so on modules examples.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2016-07-09 19:01:02 UTC
*** Bug 588296 has been marked as a duplicate of this bug. ***
Comment 8 Thomas Capricelli 2016-08-12 20:36:07 UTC
Err.. so. Are examples available somewhere in gentoo for qt5 ??
Comment 9 Davide Pesavento gentoo-dev 2016-08-12 20:56:45 UTC
(In reply to Thomas Capricelli from comment #8)
> Err.. so. Are examples available somewhere in gentoo for qt5 ??

No. This is something I'd like to see implemented, but given its relatively low priority, and the never decreasing number of higher priority tasks, I don't expect it will happen in the foreseeable future. So contributions (PRs if possible) are especially encouraged in this area.
Comment 10 Michael Palimaka (kensington) gentoo-dev 2016-10-19 19:19:45 UTC
*** Bug 597568 has been marked as a duplicate of this bug. ***
Comment 11 i.Dark_Templar 2017-05-04 09:44:20 UTC
Pull request: https://github.com/gentoo/gentoo/pull/4541

Due to implemented changes in qt5-build.eclass it is required to reinstall dev-qt/qtcore:5 first, otherwise examples for packages outside of qtbase metapackage won't build and install properly. It doesn't matter whether USE-flag "examples" is set or not for dev-qt/qtcore:5.

I didn't test all packages. I've tested only that following packages look good after installation and checked examples are running fine for them:
=dev-qt/qtcore-5.6.2-r2
=dev-qt/qtgui-5.6.2-r1
=dev-qt/qtwidgets-5.6.2-r1
=dev-qt/qtopengl-5.6.2-r1
=dev-qt/assistant-5.6.2-r1
=dev-qt/designer-5.6.2-r1
=dev-qt/qtsvg-5.6.2-r1

All packages which now include examples are bumped to new revision.
Comment 12 gerion 2020-08-10 23:42:25 UTC
i.Dark Templer's pull requests were all closed (due to inactivity?). Nevertheless, the code seems to live in his overlay now (as also mentioned in the third follow up pull request):
https://github.com/iDarkTemplar/dt-overlay-patches

I just wanted to mention it here directly, thank you!
Comment 13 Ionen Wolkens gentoo-dev 2023-09-09 16:47:23 UTC
This exists in Qt6 packaging through qt-docs[examples] now, and at this point (unfortunate it's been missing for years) do not believe there's much use in aiding Qt5 development with old examples.
Comment 14 Ionen Wolkens gentoo-dev 2023-09-09 17:18:32 UTC
*** Bug 669268 has been marked as a duplicate of this bug. ***