SUMMARY Switches are quite common in GTK apps, and have started to be used in KDE apps (those that use mobileforms, e.g. Kalendar). STEPS TO REPRODUCE 1. Open "Application Style" KCM 2. Look at the widget style preview OBSERVED RESULT No switch widget EXPECTED RESULT Visible switch widget SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20221218 KDE Plasma Version: 5.26.4 KDE Frameworks Version: 5.101.0 Qt Version: 5.15.7 Kernel Version: 6.0.12-1-default (64-bit) Graphics Platform: X11 ADDITIONAL INFORMATION
There actually is no switch widget in QtWidgets. There is one for QtQuick and we have styling for it in our QQC2 theme. These previews are made using QtWidgets, and this KCM is all about the widgets style (which gets inherited for QtQuick apps), so there actually isn't a way to do this at the moment.