User Tools

Site Tools


DzButtonGroup

DAZScript wrapper for QButtonGroup.

More...

Inherits :

Inherited By : DzHButtonGroup and DzVButtonGroup

Properties

Constructors

DAZ Script
DzButtonGroup ( DzWidget parent )

Methods

DAZ Script
voidaddButton ( DzButton button )
voidaddButton ( DzButton button, Number id )
DzButtonbutton ( Number id )
Arraybuttons ()
DzButtoncheckedButton ()
Numberid ( DzButton button )
Numberinsert ( DzButton button, Number id=-1 )
voidremoveButton ( DzButton button )

Signals

voidclicked ( Number id )
voidpressed ( Number id )
voidreleased ( Number id )

Detailed Description

TODO: Add detailed description.

Properties


Number : count

The number of buttons in the group (Read Only)


Boolean : exclusive

Whether the group is exclusive for all toggle buttons (the default is false)


Boolean : radioButtonExclusive

Whether the group is exclusive for radio buttons (the default is true)


Number : selected

The checked button in an exclusive group

Constructors


DzButtonGroup( DzWidget parent )

Creates a button group as a child of the given parent widget

Methods


void : addButton( DzButton button )

Add the button to the group. This is only necessary if the button was not created as a child of the group.


void : addButton( DzButton button, Number id )

Add the button to the group. This is only necessary if the button was not created as a child of the group.


DzButton : button( Number id )

TODO: Add description.


Array : buttons()

TODO: Add description.


DzButton : checkedButton()

TODO: Add description.


Number : id( DzButton button )

Return Value:

  • The index of button in the group. -1 if button is not a member of the group.

Number : insert( DzButton button, Number id=-1 )

Add the button to the group. This is only necessary if the button was not created as a child of the group.

Return Value:

  • The index of button in the group.

void : removeButton( DzButton button )

Remove button from the group

Signals


void : clicked( Number id )

Signature:“clicked(int)”

Emitted when a button in the group is pressed and released


void : pressed( Number id )

Signature:“pressed(int)”

Emitted when a button in the group is pressed


void : released( Number id )

Signature:“released(int)”

Emitted when a button in the group is released