From:http://www.developer.nokia.com/community/wiki/qt_creator_%e4%bd%bf%e7%94%a8%e6%8a%80%e5%b7%a7
tips for using Qt Creator
Brief Introduction
QT Creator as the IDE for QT Development, support QT development, and QML development, can well play Qt Cross-platform features, here are some of the use of QT Creator techniques, QT Creator use can see video: qt Creator use profile code to browse
Many shortcuts in edit view make it easier for you to locate the code you want.
F4 |
Switch between header file and code |
F2 |
Switching between declarations and implementations |
Ctrl + K |
Open Locator (Locator) |
Ctrl + Shift + F |
Open Global Search box |
Ctrl + F |
Open the current page search box |
Ctrl + mouse Wheel |
Scaling Code |
Locator (Locator)
|
Figure: Click CTRL + K to open the locator in the lower left corner, command and function recorded in it, no need to remember the command |
In the locator, enter the following character Fuga, add the keyword you want to find, can quickly locate in the code, try it.
P |
View the files for the current project |
C |
View class |
M |
View method |
L |
Directly to the selected line number |
? |
Using the index in Help |
Video demo See: Video code editing
Tools->options->environment->keybord in the QT Creator midpoint menu bar.
|
Diagram: Shortcut Settings window, you can enter a keyword in the filter bar to locate the function or specific keys to use |
This defines the shortcut keys in Qt Creator, which are combined. You can set shortcut keys according to your own habits. Reasonable use of shortcut keys, will greatly improve the efficiency of development. See: Seven Habits of efficient editing, it is worth mentioning the QT Creator built-in vim support, the habit of using vim friends can choose to open this feature. Here are some common features for Qt creator shortcuts.
Ctrl + spaces |
| Video |
Ctrl +/ |
Comment or uncomment |
Alt + carriage Return |
Quick fixes, such as adding implementations for the methods in the header file, or declaring in a header file for implementation, adding multilanguage support for strings, and so on, try it. |