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.
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.
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.
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).
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With