MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QML RadioButtonStyle Element

RadioButtonStyle properties and default values explained More...

Inherits Style

This element was introduced in qt-components 4.7.

Properties

Detailed Description

Custom platformStyle example

 RadioButton {
     platformStyle: RadioButtonStyle {
         background: "backgroundNormal.png"
         backgroundSelected: "backgroundSelected.png"
         backgroundPressed: "backgroundPressed.png"
         backgroundDisabled: "backgroundDisabled.png"
         mouseMarginTop: 5
         mouseMarginLeft: 5
         mouseMarginRight: 5
         mouseMarginBottom: 5
         elideMode: Text.ElideMiddle
     }
 }

Property Documentation

background : string

Property default value is "image://theme/meegotouch-button-radiobutton"+__invertedString+"-background".

Background image, shown when the button is in normal state.


backgroundDisabled : string

Property default value is "image://theme/meegotouch-button-radiobutton"+__invertedString+"-background-disabled".

Background disabled image, shown when the button is disabled.


backgroundPressed : string

Property default value is "image://theme/meegotouch-button-radiobutton"+__invertedString+"-background-pressed".

Background pressed image, shown when the button is pressed.


backgroundSelected : string

Property default value is "image://theme/meegotouch-button-radiobutton"+__invertedString+"-background-selected".

Background selected image, shown when the button is selected.


elideMode : int

Property default value is Text.ElideNone.

Sets text elide mode.

  • Text.ElideNone - no elide.
  • Text.ElideLeft - elide to left.
  • Text.ElideMiddle - elide to middle.
  • Text.ElideRight - elide to right.

mouseMarginBottom : int

Property default value is 0.

Mouse margin bottom.


mouseMarginLeft : int

Property default value is 0.

Mouse margin left.


mouseMarginRight : int

Property default value is 0.

Mouse margin right.


mouseMarginTop : int

Property default value is 0.

Mouse margin top.