QImageItem QML Type
| Import Statement: | import org.kde.kquickcontrols.addons |
Properties
- fillMode : FillMode
- image : QImage
- nativeHeight : int
- nativeWidth : int
- null : bool
- paintedHeight : int
- paintedWidth : int
Signals
- fillModeChanged()
- imageChanged()
- nativeHeightChanged()
- nativeWidthChanged()
- nullChanged()
- paintedHeightChanged()
- paintedWidthChanged()
Detailed Description
Property Documentation
fillMode : FillMode
| Constant | Description |
|---|---|
Stretch | The image is scaled to fit. |
PreserveAspectFit | the image is scaled uniformly to fit without cropping. |
PreserveAspectCrop | The image is scaled uniformly to fill, cropping if necessary. |
Tile | The image is duplicated horizontally and vertically. |
TileVertically | The image is stretched horizontally and tiled vertically. |
TileHorizontally | The image is stretched vertically and tiled horizontally. |
Pad (since 5.96) | The image is not transformed. |
image : QImage
nativeHeight : int
nativeWidth : int
null : bool
paintedHeight : int
paintedWidth : int
Signal Documentation
fillModeChanged()
Note: The corresponding handler is onFillModeChanged.
imageChanged()
Note: The corresponding handler is onImageChanged.
nativeHeightChanged()
Note: The corresponding handler is onNativeHeightChanged.
nativeWidthChanged()
Note: The corresponding handler is onNativeWidthChanged.
nullChanged()
Note: The corresponding handler is onNullChanged.
paintedHeightChanged()
Note: The corresponding handler is onPaintedHeightChanged.
paintedWidthChanged()
Note: The corresponding handler is onPaintedWidthChanged.