Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QLabel and Background Transparency
webzoid last edited by
I'm using stylesheets to control the overall theme of my application.
In a number of instances, I have semi-transparent panels (90% transparency) which contain
QLabelwidgets who have their
background-colorstyle property set to be
transparent. This works fine up until the point at which the text in the label changes, then the background is no longer transparent.
If I force a re-paint of the container
QWidget, then all becomes clear again (pardon the pun) however, I don't really want to do this parent re-paint every time a label is updated (there are 8 updatable
QLabelson this particular
QWidget) as it seems a fairly expensive thing to do.
How can I maintain the transparency of a
QLabeleven when the
Tried to reproduce it but had no luck.
sankarapandiyan last edited by
@webzoid You can use setvisible (true) And (False) and make a transparent even when the text has changed