QT theming issue

Hello, everyone, I don’t quite understand qt theming with Home Manager I have configuration which should affect both qt5 and qt6, but when I did home manager switch nothing happened, so qt5/qt6 Settings apps were set to follow fusion, not kvantum as stated in configuration. I use Hyprland, QT_QPA_PLATFORMTHEME set to qt5ct. Thank u for help.


  qt = {
    enable = true;
    platformTheme.name = "qtct";
    style.name = "kvantum";
  };

  xdg.configFile = {
    "Kvantum/kvantum.kvconfig".text = ''
       [General]
       theme=GraphiteNordDark
     '';

     "Kvantum/GraphiteNord".source = "${pkgs.graphite-kde-theme}/share/Kvantum/GraphiteNord";
  };

added QT_STYLE_OVERRIDE = kvantum and now everything works, but settings app still gives a warning, not sure if this is a proper solution to this

Yeah that should be the way to go. qt.style should add the QT_STYLE_OVERRIDE env var, but maybe hyprland needs it explicitly set.

As for the warning, you can safely ignore it.

1 Like