Qt Creator Documentation 2.8.0

Contents

QML Knob Element

A knob that has a rotating needle. More...

Properties

Detailed Description

The Knob type provides a visual dial that is styled using images.

Here is a simple Knob:



Property Documentation

add : bool

Allow users to add items to the knob's model data.


font : font

The font characteristics for the numbers that are drawn around the knob.


height : int

The height of the knob.


hintBackgroundColor : string

The background color of the hint box.


hintBorderColor : string

The border color of the hint box.


hintBorderWidth : int

The border width of the hint box.


hintFontColor : string

The color to use for text of the hint box.


hintFontFamily : string

The font family to use for the text of the hint box.


hintFontPixelSize : string

The pixel size to use for text of the hint box.


hintHeight : int

The height of the hint box.


hintRadius : int

The radius of the hint box. Determines the roundness of the hint box.


hintWidth : int

The width of the hint box.


imageBase : url

The source image for the knob's background.


imageBaseHeight : int

The height of the knob image.


imageBaseWidth : int

The width of the knob image.


imageNeedle : url

The source image for the knob's needle image.


imageNeedleHeight : int

The height of the needle image.


imageNeedleWidth : int

The width of the needle image.


initialIndex : int

The initial index for the knob. This will be where the needle will point at initialization.


knobValue : real

The current value for the knob.


mouseAreaHeight : int

The height of the mouse area used to move the needle.


mouseAreaWidth : int

The width of the mouse area used to move the needle.


remove : bool

Allow users to remove data items to the knob's model data.


showHint : bool

Determines if we show the value to the user in a hint box.


textColor : string

The text color for the numbers that are drawn around the knob.


value : real

Sets the knobValue without user intervention.


width : int

The width of the knob.