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);
↧