Qt: Difference between revisions

imported>SuperSamus
No edit summary
imported>Mic92
add hint on how to add new qt targets
Line 7: Line 7:
<code>nix-shell -p qt5Full -p qtcreator --run qtcreator</code>
<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.
Tip: if it finds no Qt Kits, <code>rm -rf ~/.config/QtProject*</code> and start again. Sometimes it finds a kit, but cannot find a suitable qt version for it, in this case you can also type <code>which qmake</code> in your nix-shell and add a new entry in the <code>QT-Versions</code> tab in <code>Tools->Options->Kits</code>.


For using direnv, create a '''shell.nix''' file in the root of your project and paste these lines into it:
For using direnv, create a '''shell.nix''' file in the root of your project and paste these lines into it: