C

MCU.Config.platformPixelWidthAlignment

Defines required pixel alignment for images.

Description

This property can be used to define a pixel alignment for image assets on a platform. It takes a number that is a power of 2 (1,2,4,8), and is set to 1 by default.

Note: This property must be set in BoardDefaults.qmlprojectconfig. See the Qt Quick Ultralite Platform Porting Guide for more information.

Usage

This property is accepted in BoardDefaults.qmlprojectconfig for the target platform. It takes an integer, and the default value is 1.

Code example:

MCU.Config {
    platformPixelWidthAlignment: 4
}

Since

This property was introduced in QmlProject API 1.3 .

See also QUL_PLATFORM_REQUIRED_PIXEL_WIDTH_ALIGNMENT.

Available under certain Qt licenses.
Find out more.