- Qt 5.3
- Qt Quick Controls
- QML Types
- ToolBarStyle QML Type
- Qt 5.3.2 Reference Documentation

# ToolBarStyle QML Type

Provides custom styling for ToolBar More...

Import Statement: | `import QtQuick.Controls.Styles 1.2`
Since: | Qt 5.2

- List of all members, including inherited members

## Properties

- background : Component
- panel : Component

## Detailed Description

The tool bar can be defined by overriding the background component and setting the content padding.

Example:

    ToolBar {
        style: ToolBarStyle {
            padding {
                left: 8
                right: 8
                top: 3
                bottom: 3
            }
            background: Rectangle {
                implicitWidth: 100
                implicitHeight: 40
                border.color: "#999"
                gradient: Gradient {
                    GradientStop { position: 0 ; color: "#fff" }
                    GradientStop { position: 1 ; color: "#eee" }
                }
            }
        }
    }

## Property Documentation

background : Component

This defines the background of the tool bar.

panel : Component