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

Make NinePatchImage component public (from Qt Quick Controls 2 Imagine style)

XMLWordPrintable

      NinePatchImage is very useful component when it stands to create custom UI controls. Came from Android it's almost standard de-facto for providing image assets for UI. For now it is available as a part of Imagine style only (by import QtQuick.Controls.Imagine.impl) but anyway it still private because public qmldir for this import is absent and plugins.qmltypes module file does not include NinePatchImage description that makes its usage not comfortable - Qt Creator reports import and types errors while program works well.

      My suggestion is to at least make this API public as fully available part of Imagine Style. For now I have to manually patch /qml/QtQuick/Controls.2/Imagine/plugins.qmltypes with missing description to be able to use this type in my custom controls:

          Component {
              name: "QQuickNinePatchImage"
              prototype: "QQuickImage"
              exports: ["QtQuick.Controls.Imagine.impl/NinePatchImage 2.3"]
              isCreatable: true
              exportMetaObjectRevisions: [0]
              Property { name: "source"; type: "string" }
              Property { name: "topPadding"; type: "int"; isReadonly: true }
              Property { name: "leftPadding"; type: "int"; isReadonly: true }
              Property { name: "rightPadding"; type: "int"; isReadonly: true }
              Property { name: "bottomPadding"; type: "int"; isReadonly: true }
              Property { name: "topInset"; type: "int"; isReadonly: true }
              Property { name: "leftInset"; type: "int"; isReadonly: true }
              Property { name: "rightInset"; type: "int"; isReadonly: true }
              Property { name: "bottomInset"; type: "int"; isReadonly: true }
          }

       

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            koldoon Vadim
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes