Qt 6.11 is out! See what's new in the release
blog
How to set the Stylesheet for the QSpacerItem?
General and Desktop
4
Posts
2
Posters
3.5k
Views
1
Watching
-
Hi,
Indeed you can't, QSpacerItem is not a widget. Why would you need to do that ?
-
I have few PushButtons, When I click/hover on first PushButton then i add a QSpacerItem between the first two PushButtons. Same like, if I click on the second PushButton, then I add a QSpacerItem between the second and Third PushButtons. I set the background of the Widget as Black in color. But when i add these QSpacerItem, then the color of the spacer item didn't changes.
-
Does it stay out of color if you hide/show this widget ?
On a related note, you can use the add/insert Spacing/Stretch functions to do that