Application wide "system theme"?
-
wrote on 2 Aug 2016, 12:23 last edited by
Is there an easy way to implement application-wide themes?
I have been strugging to accomplish this task with
SystemPalette
, but that doesn't seem to apply it application-wide. Just the element gets colored. -
Is there an easy way to implement application-wide themes?
I have been strugging to accomplish this task with
SystemPalette
, but that doesn't seem to apply it application-wide. Just the element gets colored.wrote on 2 Aug 2016, 12:48 last edited by A Former User 8 Feb 2016, 12:51@Rouleaux Qt Quick Controls 2 introduced a new styling API. Qt 5.7 comes with 3 predefined styles (Default, Material, Universal).
-
wrote on 2 Aug 2016, 12:50 last edited by
Thank you!
-
Is there an easy way to implement application-wide themes?
I have been strugging to accomplish this task with
SystemPalette
, but that doesn't seem to apply it application-wide. Just the element gets colored.wrote on 29 Apr 2023, 17:19 last edited by RokeJulianLockhartimport QtQuick import QtQuick.Controls import QtQuick.Controls.Universal // Imports Windows 10 theme. ApplicationWindow { visible: true Universal.theme: Universal.System // Uses Windows 10 theme.
This only really works on Windows, though. Without this, I've found that it adheres correctly to the system theme of KDE Plasma.
Perhaps mark as solved?