User Tools

Site Tools


DzPushButton

DAZScript wrapper for QPushButton.

More...

Inherits :

Enumerations

Properties

Constructors

DAZ Script
DzPushButton ( DzWidget parent )

Methods

DAZ Script
voidsetCheckable ( Boolean yesNo )
voidsetToggleButton ( Boolean yesNo )

Signals

Detailed Description

TODO: Add detailed description.

Enumerations


: ButtonStyle

The styles that the button can be drawn in.

Since:

  • 4.6.4.76
  • Off - Deprecated
  • NoChange - Deprecated
  • On - Deprecated
  • SingleShot - Deprecated
  • Toggle - Deprecated
  • Tristate - Deprecated
  • BCommand - TODO: Add description.
  • BTool - The button is drawn as a typical Push Button.
  • BDefault - The button is drawn as a typical Tool Button.
  • BBasic - The button is drawn as a Default Push Button.
  • BNoFrame - The button is drawn with the style's Button Bevel.
  • BCustom - The button is drawn without a frame. The button is drawn with a custom style.

Properties


Boolean : autoDefault

Holds whether or not the button has the auto-default feature and responds to the [Enter] key when it has the focus; true by default for buttons that have a DzDialog parent, otherwise false.


ButtonStyle : buttonStyle

Holds whether or not the border is disabled; false by default.


Number : buttonTextFormat

Holds the style that the button is drawn in.

Since:

  • 4.6.4.76

Boolean : default

TODO: Add description.


Boolean : displayDownArrow

Holds the elide mode to be used for the text on this button.

Since:

  • 4.6.4.76

String : downArrowMetric

Holds the name of the pixel metric used to define the size of the icon on this button (if any).

Since:

  • 4.6.4.76

String : downArrowPrimitive

Holds the name of the primitive element used to draw this button.

Since:

  • 4.6.4.76

DzWidget::TextElideMode : elideMode

Holds the name of the text style used to draw the label on this button.

Since:

  • 4.6.4.76

Boolean : flat

Holds whether or not the button is the default button; false by default.


String : iconMetric

Holds whether or not to display the arrow for this button.

Since:

  • 4.6.4.76

String : primitive

Holds the format that the button text is drawn in; DzWidget::AlignmentFlags and DzWidget::TextFlags OR'd together for the button label.

Since:

  • 4.6.4.76

Boolean : sizedFromIcon

Holds the name of the pixel metric used to define the size of the arrow on this button (if any).

Since:

  • 4.6.4.76

String : textStyle

Holds the name of the primitive element used to draw the arrow on this button (if any).

Since:

  • 4.6.4.76

Constructors


DzPushButton( DzWidget parent )

Holds whether or not the button will be sized based on the size of its icon (if any). If true, this overrides iconMetric.

Since:

  • 4.11.0.38

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

Methods


void : setCheckable( Boolean yesNo )

Sets whether or not the button is a toggle button.


void : setToggleButton( Boolean yesNo )

Deprecated

Use setCheckable() instead.

Signals


void : buttonStyleChanged( ButtonStyle style )

Signature:“buttonStyleChanged(ButtonStyle)”

Emitted when buttonStyle on this button has changed.

Parameter(s):

  • style - The new button style.

Since:

  • 4.6.4.76

void : buttonTextFormatChanged( Number format )

Signature:“buttonTextFormatChanged(int)”

Emitted when buttonTextFormat on this button has changed.

Parameter(s):

  • format - The new text format.

Since:

  • 4.6.4.76

void : displayDownArrowChanged( Boolean displayArrow )

Signature:“displayDownArrowChanged(bool)”

Emitted when displayDownArrow on this button has changed.

Parameter(s):

  • displayArrow - The new state.

Since:

  • 4.6.4.76

void : downArrowMetricChanged( String name )

Signature:“downArrowMetricChanged(const QString&)”

Emitted when downArrowMetric on this button has changed.

Parameter(s):

  • name - The name of the new down arrow metric.

Since:

  • 4.6.4.76

void : downArrowPrimitiveChanged( String name )

Signature:“downArrowPrimitiveChanged(const QString&)”

Emitted when downArrowPrimitive on this button has changed.

Parameter(s):

  • name - The name of the new primitive.

Since:

  • 4.6.4.76

void : elideModeChanged( DzWidget::TextElideMode mode )

Signature:“textStyleChanged(int)”

Emitted when elideMode on this button has changed.

Parameter(s):

  • mode - The new elide mode.

Since:

  • 4.6.4.76

void : iconMetricChanged( String name )

Signature:“iconMetricChanged(const QString&)”

Emitted when iconMetric on this button has changed.

Parameter(s):

  • name - The name of the new icon metric.

Since:

  • 4.6.4.76

void : primitiveChanged( String name )

Signature:“primitiveChanged(const QString&)”

Emitted when primitive on this button has changed.

Parameter(s):

  • name - The name of the new primitive.

Since:

  • 4.6.4.76

void : sizedFromIconChanged( Boolean onOff )

Signature:“sizedFromIconChanged(bool)”

Emitted when sizedFromIcon on this button has changed.

Parameter(s):

  • name - The new state.

Since:

  • 4.11.0.38

void : textStyleChanged( String name )

Signature:“textStyleChanged(const QString&)”

Emitted when textStyle on this button has changed.

Parameter(s):

  • name - The name of the new text style.

Since:

  • 4.6.4.76