When running in the COSMIC desktop, Qt applications don't pick up the light/dark style of the desktop. Also, not Qt event is received when the desktop changes from light to dark.
This appears to be a problem with COSMIC's support of Qt - see pop-os/cosmic-settings#617. In the referenced issue, setting
QT_QPA_PLATFORMTHEME=xdgdesktopportal is reported to help, but setting that as well as installing libqt5-qtbase-platformtheme-xdgdesktopportal and xdg-desktop-portal-cosmic had no effect.
When running in the COSMIC desktop, Qt applications don't pick up the light/dark style of the desktop. Also, not Qt event is received when the desktop changes from light to dark.
This appears to be a problem with COSMIC's support of Qt - see pop-os/cosmic-settings#617. In the referenced issue, setting
QT_QPA_PLATFORMTHEME=xdgdesktopportalis reported to help, but setting that as well as installinglibqt5-qtbase-platformtheme-xdgdesktopportalandxdg-desktop-portal-cosmichad no effect.