//Для основного виджетаpal = palette();pal.setBrush(backgroundRole(), QBrush(QColor(0, 0, 0, 80));setAutoFillBackground(true);setPalette(pal);//Для QTreeWidgetpal = resultTreeWidget->palette();pal.setBrush(resultTreeWidget->backgroundRole(), QBrush(QColor(0, 0, 0, 0)));resultTreeWidget->setAutoFillBackground(true);resultTreeWidget->setPalette(pal);
resultTreeWidget->horizontalHeader()->setAutoFillBackground(true);resultTreeWidget->horizontalHeader()->setPalette(resultTreeWidget->palette());
resultTreeWidget->header()->setAutoFillBackground(true); resultTreeWidget->header()->setPalette(resultTreeWidget->palette());
"QScrollBar:horizontal {" " border: 1px solid rgba(0, 0, 0, 80);" " background: rgba(0, 0, 0, 0);" " height: 15px;" "margin: 0px 40px 0 0px;" "}"" QScrollBar::handle:horizontal {" " background: rgba(0, 0, 0, 100);" " min-width: 20px;" "}""QScrollBar::add-line:horizontal {"//вправо " background: rgba(0, 0, 0, 100);" " width: 16px;" " subcontrol-position: right;" " subcontrol-origin: margin;" "border: 1px solid black;" "}"" QScrollBar::sub-line:horizontal {"//влево " background: rgba(0, 0, 0, 100);" " width: 16px;" " subcontrol-position: top right;" " subcontrol-origin: margin;" "border: 1px solid black;" "position: absolute;" "right: 20px;" "}" "QScrollBar:left-arrow:horizontal, QScrollBar::right-arrow:horizontal {" " width: 3px;" " height: 3px;" " background: none;" "}" "QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {" " background: none;" "}";