C++ (Qt)... dock = new QDockWidget(tr("Comments:" ), this); error_output = new QListWidget( dock ); error_output->addItems(QStringList() << ""); dock->setWidget( error_output ); addDockWidget(Qt::RightDockWidgetArea, dock);... QColor color; color.setRgb( 0, 0, 255 ); QPalette palette; QPalette::ColorRole cRole = QPalette::Background; palette.setColor( cRole, color.rgb() ); this->error_output->setPalette( palette );
C++ (Qt)QPalette palette = error_output->palette();palette.setColor(QPalette::Background, QColor(0, 0, 255));error_output->setPalette(palette);
QWidget { font-family: Verdana; font-style: normal; font-weight: normal; font-size: 11px; color: #090909;}#QuickStart #line1, #QuickStart #line2 { background: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop: 0 #f4f6f6, stop: 0.4 #f4f6f6, stop: 1 #b0b0b0); border: none;}