Qt: Difference between revisions

m Fix syntax error in example code for specifying explitit Qt dependencies
Sandro (talk | contribs)
Line 202: Line 202:


=== This application failed to start because it could not find or load the Qt platform plugin ??? in "" ===
=== This application failed to start because it could not find or load the Qt platform plugin ??? in "" ===
==== qt4 ====
Qt4 depends on the environment variable <code>QT_PLUGIN_PATH</code> to find plugins. It is normally already
present in the environment on NixOS at least, but for example systemd user units are launched in a pretty empty environment. A solution is to use the command {{Commands|systemctl --user import-environment QT_PLUGIN_PATH}} from a sane environment. For example add it to the <code>services.xserver.displayManager.sessionCommands</code> option.
==== qt5 ====
==== qt5 ====
{{warning|This recommendation is deprecated for 19.09 and up, see {{issue|65399}}. Failing packages should be updated to use <code>wrapQtAppsHook</code>.}}
{{warning|This recommendation is deprecated for 19.09 and up, see {{issue|65399}}. Failing packages should be updated to use <code>wrapQtAppsHook</code>.}}