MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QML SliderStyle Element

SliderStyle properties and default values explained. More...

Inherits Style

This element was introduced in qt-components 4.7.

Properties

Detailed Description

Custom platformStyle example

 Slider {
     platformStyle: SliderStyle {
         fontFamily: "Arial"
         fontPixelSize: 30
         textColor: "red"
         valueBackground: "valueBackground.png"
         labelArrowDown: "labelArrowDown.png"
         labelArrowUp: "labelArrowup.png"
         labelArrowLeft: "labelArrowLeft.png"
         labelArrowRight: "labelArrowRight.png"
         handleBackground: "handleBackground.png"
         handleBackgroundPressed: "handleBackgroundPressed.png"
         grooveItemBackground: "grooveItemBackground.png"
         grooveItemElapsedBackground: "grooveItemElapsedBackground.png"
         mouseMarginTop: 5
         mouseMarginLeft: 5
         mouseMarginRight: 5
         mouseMarginBottom: 5
     }
 }

Property Documentation

fontFamily : string

Property default value is UI.FONT_FAMILY.

Font family.


fontPixelSize : int

Property default value is UI.FONT_DEFAULT_SIZE.

Font pixel size.


grooveItemBackground : string

Property default value is "image://theme/meegotouch-slider"+__invertedString+"-background-horizontal".

Grooves item background image location.


grooveItemElapsedBackground : string

Property default value is "image://theme/meegotouch-slider-elapsed"+__invertedString+"-background-horizontal".

Grooves item elapsed background image location.


handleBackground : string

Property default value is "image://theme/meegotouch-slider-handle"+__invertedString+"-background-horizontal".

Handles background image location.


labelArrowDown : string

Property default value is "image://theme/meegotouch-slider-handle-label-arrow-down"+__invertedString.

Label arrow down image location.


labelArrowLeft : string

Property default value is "image://theme/meegotouch-slider-handle-label-arrow-left"+__invertedString.

Label arrow left image location.


labelArrowRight : string

Property default value is "image://theme/meegotouch-slider-handle-label-arrow-right"+__invertedString.

Label arrow right image location.


labelArrowUp : string

Property default value is "image://theme/meegotouch-slider-handle-label-arrow-up"+__invertedString.

Label arrow up image location.


mouseMarginBottom : real

Property default value is 0.0.

Mouse margin bottom.


mouseMarginLeft : real

Property default value is 0.0.

Mouse margin left.


mouseMarginRight : real

Property default value is 0.0.

Mouse margin right.


mouseMarginTop : real

Property default value is 0.0.

Mouse margin top.


textColor : color

Property default value is !inverted?UI.COLOR_INVERTED_FOREGROUND:UI.COLOR_FOREGROUND.

Text color.


valueBackground : string

Property default value is "image://theme/meegotouch-slider-handle-value"+__invertedString+"-background".

Value background image location.