https://bugs.documentfoundation.org/show_bug.cgi?id=172885

--- Comment #5 from Hossein <[email protected]> ---
(In reply to Heiko Tietze from comment #2)
> How to load a theme on runtime? Something like test.json containing
> "QPushButton { color: red }" with the idea to load per
> "SAL_USE_VCLPLUGIN=qt6 SAL_VCL_QT_USE_WELDED_WIDGETS=1
> QT_STYLE_OVERRIDE=./test.json instdir/program/swriter" is no cigar.
Some other related environment variables for Qt:

QT_STYLE_OVERRIDE works similar to setting some style options via -style in
command line. It does not accept stylesheet, which is set by -stylesheet.

Qt 6 > QApplication Class
https://doc.qt.io/qt-6/qapplication.html#QApplication

Style options are dependant on the system, but Windows and Fusion are usually
available:

Qt Widget Gallery
https://doc.qt.io/qt-6/gallery.html

There is also QT_QPA_PLATFORM environment variable, which can be used like
this, for a light mode on Windows:

export QT_QPA_PLATFORM="windows:darkmode=0"

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to