User Tools

Site Tools


DzLabel

DAZScript wrapper for QLabel.

More...

Inherits :

Enumerations

Properties

Constructors

DAZ Script
DzLabel ( DzWidget parent )

Methods

DAZ Script
DzWidgetbuddy ()
voidclear ()
voidsetBuddy ( DzWidget buddy )

Signals

Detailed Description

This class provides text or image display.

Enumerations


: TextFormat

Enumerated values that describe how the text string is interpreted.

Since:

  • 4.9.3.93
  • PlainText - The text string is interpreted as a plain text.
  • RichText - The text string is interpreted as a rich text.
  • AutoText - The text is interpreted as automatically.

Properties


DzWidget::AlignmentFlags : alignment

Holds the alignment of the text displayed in the label.


DzWidget::TextElideMode : elideMode

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

Since:

  • 4.10.0.22

Boolean : hasSelectedText

Holds whether or not text is selected. (Read Only)


Number : indent

Holds the label's indent in pixels from its current alignment.


Boolean : openExternalLinks

Holds whether or not external links will be opened when clicked.


Pixmap : pixmap

The pixmap shown on the label. If the pixmap is monochrome (e.g. its depth is 1) and it does not have a mask, the pixmap will be its own mask. This allows transparent bitmaps to be drawn, which are important for toggle buttons. undefined if no pixmap is set.


String : primitive

TODO: Add description.


Boolean : scaledContents

Holds whether or not the contents of the label are scaled to fill the available space.


String : selectedText

Holds the text that is currently selected. (Read Only)


String : text

Holds the text displayed in the label.


TextFormat : textFormat

Holds the value that is used to determine if the text string should be interpreted as plain, rich or log text.


DzWidget::TextInteractionFlags : textInteractionFlags

Holds the value that is used to determine how the label reacts to user input.


String : textStyle

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

Since:

  • 4.10.0.22

Boolean : wordWrap

Holds whether or not the text is wrapped where necessary; i.e., word-breaks.

Constructors


DzLabel( DzWidget parent )

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

Since:

  • 4.10.0.22

Creates a label as a child of the given parent widget.

Parameter(s):

  • parent - The widget parent for the label.

Methods


DzWidget : buddy()

Return Value:

  • The buddy widget for the label, undefined if none.

void : clear()

Clears the text displayed in the label.


void : setBuddy( DzWidget buddy )

Sets the buddy widget for this label.

Parameter(s):

  • buddy - The widget to set.

Signals


void : elideModeChanged( DzWidget::TextElideMode mode )

Since:

  • 4.10.0.22

void : primitiveChanged( String name )

Since:

  • 4.10.0.22

void : textFormatChanged( TextFormat format )

TODO: Add description.


void : textInteractionFlagsChanged( DzWidget::TextInteractionFlags flags )

Since:

  • 4.10.0.22

void : textStyleChanged( String name )

Since:

  • 4.10.0.22