Adhere to the DE's QStyle and QPalette.
Free Zip software and Rar extractor
Brought to you by:
giorgiotani
It's trivial to adhere to:
PS /home/beedell.roke_julian_lockhart> bpython
bpython version 0.26 on top of Python 3.14.5 /usr/bin/python3
>>> from PySide6.QtWidgets import QApplication
>>>
>>> app = QApplication([])
>>> style, palette = QApplication.style(), QApplication.palette()
>>> print(style)
<PySide6.QtWidgets.QCommonStyle(0x55e9158f28a0, name = "breeze") at 0x7fb40b4fb6c0>
>>> print(palette)
<PySide6.QtGui.QPalette(resolve=0x0) at 0x7fb40b4fb700>
Overriding it makes using the application difficult for anyone who is visually impaired (not least because it regresses its dark mode support), and makes it unintuitive regardless.
Does this method work when the Qt6 version of the app is used from a GTK/Gnome based Desktop Environment, and when it is run from a Flatpak container?
As for my test on Linux test machines the Qt6 app version applies correctly, and without need of workarounds, theming from a Qt-based DE, while needs appropriate methods to apply DE theming if the DE is not Qt based, or if the app is run as Flatpak.
@giorgiotani, this "method" to do what? (This issue is about adhering to the DE's
QStyleandQPalette. In my case, and by default with KDE Plasma 5 and 6, that isorg\.kde\.breeze.*.)Regardless, my environment is:
Last edit: Mr. Beedell, Roke Julian Lockhart (RJLB) 2026-06-20