Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.8.x, 5.0.0
-
None
Description
There are about ~40 Qml examples in the Qt docs which have been converted using the Qt Creator "Qt Quick Application" Wizard. Each of these examples:
- Has it's own redundant copies of qmlapplicationviewer.[h|cpp|pri], appicon.svg, and appicon.png. (~24 k of duplicated data per example)
- Duplicates the original .qml/.js/.png files. The duplicates are already diverging, as you can see in the 1-character difference between color-animation.qml and color-animation.qml.
- Comes with an outdated QmlApplicationViewer, causing Qt Creator to offer an update, each time the example is opened.
These are the examples: alerts autosize availableFonts banner behavior-example borderimage clocks color-animation corkboards Delegate dialcontrol dynamiclist dynamicscene easing expandingdelegates experimental-gestures flipable focus fonts googlemaps gridview-example hello highlight highlightranges i18n image inlinehtml main mousearea-example newwindows pathview-example positioners progressbar property-animation sections shadows slideswitch states textselection tic-tac-toe tvtennis visualitemmodel xmlhttprequest-example
A good solution would be to have one one copy of qmlapplicationviewer.[h|cpp|pri], appicon.svg, and appicon.png and letting the main .pro files reference these. Also remove the duplicated .qml files and reference them from the main .pro files, aswell.