Qt Creator Documentation

Using Qt Quick Toolbars

When you edit QML code in the code editor, you specify the properties of QML components. For some properties, such as colors and font names, this is not a trivial task. For example, few people can visualize the color #18793f.

To easily edit these properties, you can use the Qt Quick Toolbars. When you select a component in the code and a toolbar is available, a light bulb icon appears: . Select the icon to open the toolbar.

To open toolbars immediately when you select a component, select Tools > Options... > Qt Quick > Qt Quick Toolbar > Always show Quick Toolbar.

Drag the toolbar to pin it to another location. Select to unpin the toolbar and move it to its default location. To pin toolbars by default, select Tools > Options... > Qt Quick > Qt Quick Toolbar > Pin Quick Toolbar.

Previewing Images

The Qt Quick Toolbar for images allows you to edit the properties of Border Image and Image components. You can scale and tile the images, replace them with other images, preview them, and change the image margins.

"Qt Quick Toolbar for images"

To preview an image, double-click it on the toolbar. In the preview dialog, you can zoom the image. Drag the image margins to change them.

"Image preview dialog"

Formatting Text

The Qt Quick Toolbar for text allows you to edit the properties of Text components. You can change the font family and size as well as text formatting, style, alignment, and color.

If a property is assigned an expression instead of a value, you cannot use the toolbar to edit it. The button for editing the property is disabled.

"Qt Quick Toolbar for text"

By default, font size is specified as pixels. To use points, instead, change px to pt in the size field.

Previewing Animation

The Qt Quick Toolbar for animation allows you to edit the properties of PropertyAnimation components and the components that inherit it. You can change the easing curve type and duration. For some curves, you can also specify amplitude, period, and overshoot values.

"Qt Quick Toolbar for animation"

Select the play button to preview your changes.

Editing Rectangles

The Qt Quick Toolbar for rectangles allows you to edit the properties of Rectangle components. You can change the fill and border colors and add gradients.

"Qt Quick Toolbar for rectangles"

To add gradient stop points, click above the gradient bar. To remove stop points, drag them upwards.

[Previous: Refactoring] [Next: Searching With the Locator]

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

s.parentNode.insertBefore(ga, s); })(); -->