Meego Wiki
Views

RadioButton API Snapshot

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(removed private properties)
 
Line 17: Line 17:
;''alias'' font  
;''alias'' font  
:Provides access to the font of the text displayable next to the button.
:Provides access to the font of the text displayable next to the button.
-
 
-
=Private properties=
 
-
-
 
   
   
=Signals=
=Signals=

Latest revision as of 12:24, 28 April 2011

Contents

Description

This is a radio button. The group property has to be set and it needs to be added to a RadioGroup. All radio buttons in a group need unique values.

API properties

bool checked
Holds the checked state. Only to be altered by RadioGroup.
variant value
Holds the buttons value. It has to be set unique within its group.
QtObject group
Holds the group the button belongs to.
real height
The buttons height. By default it will be the height of the buttons image.
real width
The buttons width. By default it's set to cover the image and text.
alias text
Provides access to the text displayable next to the button.
alias font
Provides access to the font of the text displayable next to the button.

Signals

-

Functions

-

Example

RadioGroup { id: radioGroup }

RadioButton {
    id: radioButton

    group: radioGroup
    value: 1

    Component.onCompleted: { radioGroup.add( radioButton ) }
}
Personal tools