StaticText:
Filter:
Classes | GUI > Views

StaticText : TextViewBase : View : QObject : Object

A view displaying non-editable text
Subclasses: QStaticText

Description

A view displaying non-editable text

Class Methods

Inherited class methods

Undocumented class methods

StaticText.new(parent, bounds)

StaticText.qtClass

Instance Methods

Data

.string

.string = text

The text displayed by the view.

Arguments:

text

A String.

.object

.object = obj

From superclass: TextViewBase

If -setBoth is true, setting this variable also sets -string to the value interpreted as String.

Arguments:

obj

Any object, typically one which makes sense to display as a string, such as a Float.

.setBoth

.setBoth = value

From superclass: TextViewBase

A variable stating whether setting -object will also set -string.

Arguments:

(arg1)

A Boolean.

Appearance

.align

.align = aSymbol

From superclass: TextViewBase

The alignment of the displayed text. See Alignment for possible values.

.font

.font = aFont

From superclass: View

The font used to display the text.

Arguments:

aFont

A Font.

.stringColor

.stringColor = color

The color used to display the text.

Arguments:

color

A Color.

.background

.background = color

Setting this variable colors the whole area occupied by the view under the text with the given color.

Arguments:

color

A Color.

Inherited instance methods

Examples

Basic Example

Monitoring Values in a Synth

Dynamic Text