QLabel is ignoring me [Solved]
-
Can anyone tell me why this code does not set the background color of the QLabel to white?
@ m_pLogOutput = new QLabel("Status");
QPalette logOutputPalette(m_pLogOutput->palette());
logOutputPalette.setColor(QPalette::Window, QColor(Qt::white));
m_pLogOutput->setPalette(logOutputPalette);@ -
You need to use setAutoFillBackground(true) for your label.
-
Thanks!
asdöklgh aödghaklösg asgilö abgla
-
[quote author="Asperamanca" date="1368515893"]
asdöklgh aödghaklösg asgilö abgla[/quote]It happens :)
-
That was just to make the post long enough to be accepted. No animals were harmed in this thread ;-)