Qt: Difference between revisions

imported>Das-g
m fix gratuitous HTML escaping
imported>LinArcX
Development with qt and qt creator
Line 1: Line 1:
{{expansion}}
{{expansion}}
== Development ==
If you want to develop qt applications in nixos you have to use nix-shell or direnv.
For using nix-shell just run this command in the terminal:
<code>nix-shell -p qt5Full -p qtcreator --run qtcreator</code>
Tip: if it finds no Qt Kits, <code>rm -rf ~/.config/QtProject*</code> and start again.
For using direnv, create a '''shell.nix''' file in the root of your project and paste these lines into it:
{{File|shell.nix|nix|<nowiki>
{ pkgs ? import <nixpkgs> {} }:
  pkgs.mkShell {
    buildInputs = [
                    pkgs.qt5.full
                    pkgs.qtcreator
                  ];
}
</nowiki>}}
Also create '''.envrc''' file and paste: <code>use_nix</code> into it.
Happy qt coding :)


== Troubleshooting ==
== Troubleshooting ==