Qt5.9.3 QML App background transparent
-
my QML app is rendering with eglfs-kms-egldevice plugin, and when setting the background to transparent,
the UI background will be white on the screen.background to transparent:
ApplicationWindow { id : mainWindow visible: true width: Screen.width height: Screen.height background:Rectangle { color : "#80030f14" } }
-
A quote from ApplicationWindow::background docs:
This property holds the background item.
The background item is stacked under the content item, but above the background color of the window.
The background item is useful for images and gradients, for example, but the color property is preferable for solid colors, as it doesn't need to create an item. -
A quote from ApplicationWindow::background docs:
This property holds the background item.
The background item is stacked under the content item, but above the background color of the window.
The background item is useful for images and gradients, for example, but the color property is preferable for solid colors, as it doesn't need to create an item.