Complete code

As you write code, Qt Design Studio suggests properties, IDs, and code snippets to complete the code. It shows a list of suggestions to the statement currently under your cursor.

Press Tab or Enter to accept the selected suggestion and complete the code.

Suggestions for completing QML code.

To open the list of suggestions at any time, press Ctrl+Space. If only one option is available, Qt Design Studio inserts it automatically.

Summary of Available Types

The following table lists available types for code completion and icon used for each.

IconDescription
A QML type
A QML code snippet

Complete code snippets

Code snippets can consist of multiple variables that you specify values for. Select an item in the list and press Tab or Enter to complete the code. Press Tab to move between the variables and specify values for them. When you specify a value for a variable, all instances of the variable within the snippet are renamed.

QML code snippet.

See also Add code snippets to the auto-complete menu, Completion, and Snippets.

Available under certain Qt licenses.
Find out more.