You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But any qt6 application says: QApplication: invalid style override 'adwaita' passed, ignoring it.
This is definitly related to QT_PLUGIN_PATH, because if I export QT_PLUGIN_PATH like this:
I think this may have worked by accident in Qt5. Because I can't find documentation to confirm that this behavior is intentional, but Qt5 searches for plugins in every PATH entry + ../lib/[qt-prefix]/plugins, but Qt6 only searches directly in entries in QT_PLUGIN_PATH (or QT_QPA_PLATFORM_PLUGIN_PATH) and does not make up extra search paths based on PATH
Therefore since /run/current-system/sw/bin is in PATH, Qt5 searches /run/current-system/sw/lib/[qt-5-prefix]/plugins, even though it isn't specified in QT_PLUGIN_PATH
So we should probably be setting QT_PLUGIN_PATH for all versions in nixos/modules/config/qt.nix regardless, unless that behavior in Qt5 is intentional (even then, explicitly adding it to QT_PLUGIN_PATH is clearer)
Describe the bug
After #182580, I have set:
But any qt6 application says:
QApplication: invalid style override 'adwaita' passed, ignoring it.
This is definitly related to QT_PLUGIN_PATH, because if I export QT_PLUGIN_PATH like this:
Everthing works fine.
Steps To Reproduce
Open any qt6 app
Notify maintainers
@bobby285271 @hedning @jtojnar @dasj19 @maxeaubrey @linsuiMetadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: