Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
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 } }
Attachments
Issue Links
- replaces
-
QTBUG-45276 Support for ImageProvider in BorderImage's sci file missing
- Reported
-
QTBUG-65886 BorderImage doesn't support Hi DPI for .sci files.
- Reported
-
QTBUG-34253 QQuickBorderImage has no caching for .sci files.
- Open