Qt Creator Use Tips __qt

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.