QHBoxLayout background is not transparent, its white
-
wrote on 10 Nov 2021, 19:43 last edited by
Hi, im grouping all the elements in my desing inside a Layout, but for some reason when im doing the desing it appers transparent (is perfect) but when i compile or previsualize my desing, it shows a white background, basically it behaves like a widget but if i search for setstylesheet i got nothing, as anyone else encounter this behaivior? i want to set the white part to transparent.
-
wrote on 10 Nov 2021, 19:52 last edited by
assign it to a widget and change the background color of the widget
-
Hi, im grouping all the elements in my desing inside a Layout, but for some reason when im doing the desing it appers transparent (is perfect) but when i compile or previsualize my desing, it shows a white background, basically it behaves like a widget but if i search for setstylesheet i got nothing, as anyone else encounter this behaivior? i want to set the white part to transparent.
wrote on 10 Nov 2021, 19:45 last edited by@Lightshadown The layouts are not visual elements so they do not have a background color (neither white nor transparent). Layouts are just objects that manage the position and size of the widgets.
-
wrote on 10 Nov 2021, 19:52 last edited by
assign it to a widget and change the background color of the widget
-
wrote on 19 Nov 2021, 04:29 last edited by
@JoeCFD actually what i did was to move everything inside a frame, with stylesheet and set the background to transparent and the border to 0 Px, that did the trick