C

MCU.Config.platformOpaquePixelFormat

Defines a default pixel format for opaque image assets.

Description

This property can be used to define a default pixel format for the opaque image assets.

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 a string, and the default value is "XRGB8888".

The available options are:

  • "XRGB8888"
  • "RGB888"
  • "RGB565"
  • "RGB332"

Code example:

MCU.Config {
    platformOpaquePixelFormat: "XRBG8888"
}

Since

This property was introduced in QmlProject API 1.3 .

See also QUL_PLATFORM_DEFAULT_RESOURCE_PIXEL_FORMAT_OPAQUE.

Available under certain Qt licenses.
Find out more.