Widget.setOpacity

Request the widget to be rendered partially transparent, with opacity 0 being fully transparent and 1 fully opaque. (Opacity values are clamped to the [0,1] range.). This works on both toplevel widget, and child widgets, although there

class Widget
void
setOpacity
(
double opacity
)

Parameters

opacity double

desired opacity, between 0 and 1 Since 3.8

Meta