AlignedSize QML Type
An attached property that aligns a size on the physical pixel grid. More...
| Import Statement: | import org.kde.kirigami.primitives |
| Since: | 6.20 |
Attached Properties
Detailed Description
Transforms a size to the nearest one perfectly aligned to the pixel grid in case fractional scaling in used.
import org.kde.kirigami as Kirigami Rectangle { width: AlignedSize.alignedWidth height: AlignedSize.alignedHeight AlignedSize.width: Units.gridUnit AlignedSize.height: 1 }
Attached Property Documentation
AlignedSize.height : real |
The height of the item in logical pixels
AlignedSize.width : real |
The width of the item in logical pixels