AlignedSize QML Type
An attached property that aligns a size on the physical pixel grid. More...
Import Statement: | import org.kde.kirigami |
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 : double |
The height of the item in logical pixels
AlignedSize.width : double |
The width of the item in logical pixels