Problem: The import wizard displays a white background (especially the button bar area with Finish/Cancel buttons) while the rest of the application correctly shows dark gray backgrounds when dark mode is enabled.
What was tried:
- Added
setAutoFillBackground(true) to DstListPage
- Set palette explicitly:
setPalette(QApplication::palette()) on both DstListPage and ListImportWizard
- Applied various stylesheets to the wizard:
"QWizard, QWizard > QWidget { background-color: ...; }"
"QWizard { background-color: ...; } QWizard QWidget { background-color: ...; }"
"QWizard QFrame { background-color: ...; }"
- Used object name selector:
setObjectName("wizard") with setStyleSheet("#wizard { background-color: %1; }")
- Attempted to apply palette to all child widgets in
showEvent() using findChildren<QWidget*>()
Result: All stylesheet approaches either left white areas (button bar) or incorrectly styled child elements (buttons got gray overlay). The object name selector approach was closest but still left the button bar area white. The issue is that QWizard has internal layout areas that don't inherit the background styling properly, requiring different handling than regular QWidget-based views like HomeView.
Problem: The import wizard displays a white background (especially the button bar area with Finish/Cancel buttons) while the rest of the application correctly shows dark gray backgrounds when dark mode is enabled.
What was tried:
setAutoFillBackground(true)to DstListPagesetPalette(QApplication::palette())on both DstListPage and ListImportWizard"QWizard, QWizard > QWidget { background-color: ...; }""QWizard { background-color: ...; } QWizard QWidget { background-color: ...; }""QWizard QFrame { background-color: ...; }"setObjectName("wizard")withsetStyleSheet("#wizard { background-color: %1; }")showEvent()usingfindChildren<QWidget*>()Result: All stylesheet approaches either left white areas (button bar) or incorrectly styled child elements (buttons got gray overlay). The object name selector approach was closest but still left the button bar area white. The issue is that QWizard has internal layout areas that don't inherit the background styling properly, requiring different handling than regular QWidget-based views like HomeView.