Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Most useful (productive) shortcuts in Qt Creator [closed]

What is the your most useful and productive keyboard shortcut in Qt Creator?

Following the trend of great questions asked about Eclipse CDT, vim, Intellij IDEA.

like image 870
grzkv Avatar asked Sep 15 '14 15:09

grzkv


People also ask

How do I create a shortcut in Qt?

The simplest way to create a shortcut for a particular widget is to construct the shortcut with a key sequence. For example: shortcut = new QShortcut(QKeySequence(tr("Ctrl+O", "File|Open")), parent); When the user types the key sequence for a given shortcut, the shortcut's activated() signal is emitted.

Is Qtcreator an IDE?

Qt Creator is a cross-platform integrated development environment (IDE) built for the maximum developer experience. Qt Creator runs on Windows, Linux, and macOS desktop operating systems and allows developers to create software across desktop, mobile, and embedded platforms.

Is Qt and Qt Creator same?

Qt comes with its own Integrated Development Environment (IDE), named Qt Creator. It runs on Linux, OS X and Windows and offers intelligent code completion, syntax highlighting, an integrated help system, debugger and profiler integration and also integration for all major version control systems (e.g. git, Bazaar).

Is Qt Creator made with Qt?

Qt Creator is a cross-platform C++ IDE (Integrated Development Environment) that is part of the Qt project. It is used for building GUI applications that run on Windows, Mac OS X, Linux, Android, and many embedded systems.


1 Answers

Comment/uncomment lines (select text and press). With this shortcut you can simply comment very large piece of code and uncomment it in future:

Ctrl + /

Autocomplete:

Ctrl + Space

History of clipboard. You get popup menu with all text which you pasted in Qt Creator and if you choose something and press Enter you paste this formatted text into your code

Ctrl + Shift + V

like image 189
Kosovan Avatar answered Sep 20 '22 18:09

Kosovan