QT widget background problem
Unsolved
General and Desktop
-
Hello,
I'm having this problem where when adding widgets the background of the widget itself seems to be transparent unless it is a label
Original widget (background all red):
After adding it to another widget:
The Labels keep the background but the Widget lost its red background and its transparent thus showing that line in between the labels.
-
Not sure but you may want to check out autoFillBackground property.
It's either that or simply different default QPalette for QLabel vs. base QWidget.
-
Hi,
Can you provide a minimal compilable example that shows that behaviour ?
What version of Qt are you using ?
On what platform ?