当前位置:网站首页>QT creator tips

QT creator tips

2022-06-24 03:11:00 Andisi

Qt Creator Using skills

1. Qt Creator Shortcut keys

Qt There are many shortcuts , The commonly used shortcut keys are as follows

Shortcut key function
Ctrl + N Create a new file or project (N)
Ctrl + W Close the current window / close current file
Ctrl + Shfit + W Close all files
Ctrl + F4 close current file (windows)
Ctrl + R function
Alt + ←( Direction left key ) Return to upper level ( return ), Commonly used in jump code
Alt + →( Right click in the direction ) Go to the next level ( Forward ), Commonly used in jump code
Ctrl + IQt It will automatically typeset and align the code
Ctrl-- (Ctrl+ Mouse wheel down ) Reduce font size
Ctrl++ (Ctrl+ Mouse wheel up ) Increase font size
Ctrl+0 Reset font size
Ctrl+< Fold
Ctrl+> an
Ctrl+Ins Copy line
Ctrl+Alt+Down Copy to line
Ctrl+Alt+Up Copy to line
Ctrl+Shift+Enter Insert a new line above the current line
Ctrl+Enter Insert a new row below the current row
Ctrl+Shift+V View clipboard history
Shift+Del Cut line
Ctrl+J Append row
Ctrl+Shift+Down Move current row down
Ctrl+Shift+Up Move the current line up
Ctrl + Left mouse button /Shift + F2 Switch function declaration / Definition
F4 Edit signals and slots
Ctrl+} Jump to } The ending block
Ctrl+{ Jump to { The starting block
Ctrl+Shift+T Open the type hierarchy window

2. Qt Creator Help document for

install Qt when , The help documentation is already installed in the installation directory /Qt5.12.9/Docs/ Next , by html Text format , You can use a browser to open , You can enter this directory to view the corresponding documents

In addition, it can be done in Qt Creator Search the corresponding keywords directly under . The steps are as follows , For example, to view
QPushButton class , First click ① Click... For help ② Select index... From the drop-down list at , stay ③ Place input “QPushButton”, You can also just enter “QPush” Match the index value . Click the matching option, as shown in the figure below ⑤ It's about , It is the help document that has been explored
 Insert picture description here
For example, to view QPushButton What properties and functions of the class can be used , You can see “ Properties” and “ Public Functions” Properties and functions under the heading

 Insert picture description here
For example, to view QPushButton What slots are available for class , You can see “Public Slots” Slot function under the heading
 Insert picture description here

原网站

版权声明
本文为[Andisi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202211643310155.html