Hacking:Tools: Difference between revisions

1,540 bytes added ,  8 years ago
Added information about Qt Creator.
(Added information about using hg-git extension.)
 
(Added information about Qt Creator.)
Line 30:
 
'''Note''' the command can hang. You can wait finish or close terminal without losing data.
 
== Qt Creator ==
When you use Qt you have two IDE to choose: Qt Creator and Visual Studio. Yes, last information what i have says that Eclipse doesn't have support for Qt5.
 
First look better begin from [https://www.qt.io/ide/ the official website].
 
For effective using Qt Creator you will need know some stuff.
* Qt Creator supports Mercurial, so creating and deleting files better to do from the IDE.
* [https://doc.qt.io/qtcreator/creator-keyboard-shortcuts.html Keyboard Shortcuts].
* [https://doc.qt.io/qtcreator/creator-editor-refactoring.html Refactoring].
* [https://doc.qt.io/qtcreator/creator-code-style-settings.html Specifying Code Style Settings]. Valentina's code style file for Qt Creator you can find in '''<root>/share''' directory.
* Set path to License template. '''Tools->Options->C++->File Naming'''. Example of license template for project you can find in '''<root>/share''' directory. Move it to another directory outside of the project directory and then change name of an author.
* Set max length of source code line equal 120 characters. '''Tools->Options->Text Editor->Display'''.
* Compile faster. For this use -j key for make. '''Projects->Build Steps->Make''' add -jX - where X number of cpu in your system.
* Don't forget Qt Creator support two release mode: release and debug. Project will be compile with different keys in different modes. Qt team recommended developing to do in debug mode. Also debugging works only in debug mode. Plus Qt will show additional warning information if something happened.