我想做一个窗口与三个滚动区域,并改变他们的 colored颜色
class Ui_MainWindow(QWidget):
def __init__(self):
super().__init__()
self.setupUi()
def setupUi(self):
self.setWindowTitle("Main Window")
self.setGeometry(100, 100, 1024, 768)
self.setStyleSheet("background-color: #19191A;")
...
scroll_area_1 = QScrollArea(self)
scroll_area_1.setGeometry(120, 100, 300, 600)
scroll_area_1.setWidgetResizable(True)
scroll_content_1 = QWidget()
scroll_area_1.setWidget(scroll_content_1)
scroll_area_1.setStyleSheet("background-color: #201F22;"
"border-width: 0px;"
"border-radius: 15px;")
grid_1 = QGridLayout(scroll_content_1)
但是这个滚动区域的 colored颜色 没有改变,区域的 colored颜色 跟随窗口的 colored颜色 . 如何更改滚动区域的 colored颜色 ?