Am Dienstag, 11. März 2025, 14:44 schrieb Axel Spoerl:
> Asking differently: How can a Qt application make sure, that KdePlatformTheme 
> is used?

Nothing, it happens automatically.
Our Theme has key: "kde" matching to XDG_CURRENT_DESKTOP
https://invent.kde.org/plasma/plasma-integration/-/blob/master/qt6/src/platformtheme/kdeplatformtheme.json?ref_type=heads

QGuiApplication  will first try to load a matching plugin directly only 
afterwards  via QPlatformIntegration::createPlatformTheme which 
calls QGenericUnixTheme::createUnixTheme
https://invent.kde.org/qt/qt/qtbase/-/blob/dev/src/gui/kernel/qguiapplication.cpp#L1369

David


Reply via email to