Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21213

Humongous duplications in declarative examples

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.0 Beta 3
    • 4.8.x, 5.0.0
    • Documentation
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            docteam Qt Documentation Team
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes