Closed brandonzorn closed 9 months ago
scrollarea and its contents do not change color
Windows11 23H2
3.11.7 64-bit
6.4.2
1.4.5
import sys from PySide6.QtCore import Qt from PySide6.QtWidgets import QApplication from qfluentwidgets import setTheme, Theme, FluentWindow, ScrollArea, CardWidget, TitleLabel class AppWindow(FluentWindow): def __init__(self): super().__init__() self.area = ScrollArea() self.card = CardWidget() self.card.setFixedSize(120, 120) self.lbl = TitleLabel("label", self.card) self.area.setWidget(self.card) self.stackedWidget.addWidget(self.area) if __name__ == "__main__": QApplication.setHighDpiScaleFactorRoundingPolicy(Qt.HighDpiScaleFactorRoundingPolicy.RoundPreferFloor) setTheme(Theme.DARK) app = QApplication(sys.argv) window = AppWindow() window.show() sys.exit(app.exec())
You should set the style sheet of ScrollArea by yourself.
What happened?
scrollarea and its contents do not change color
Operation System
Windows11 23H2
Python Version
3.11.7 64-bit
PyQt/PySide Version
6.4.2
PyQt/PySide-Fluent-Widgets Version
1.4.5
How to Reproduce?
Minimum code