User Tools

Site Tools


DzLCDNumber

Script wrapper for QLCDNumber.

More...

Inherits :

Enumerations

DAZ Script
Mode{ Hex, Dec, Oct, Bin, HEX, DEC, OCT, BIN }
SegmentStyle{ Outline, Filled, Flat }

Properties

Constructors

DAZ Script
DzLCDNumber ( DzWidget parent )

Methods

DAZ Script
voiddisplayFloat ( Number number )
voiddisplayInt ( Number number )
voiddisplayString ( String number )
Deprecated
voiddisplay ( String number )
voiddisplay ( Number number )

Signals

voidoverflow ()

Detailed Description

Provides a LCD-style number display.

The following digits and symbols can be displayed:

0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, - (minus), . (decimal point), A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, : (colon), ° (degree sign - which is specified as single quote in the string) and space.

Illegal characters are substituted with spaces.

Enumerations


: Mode

Enumerated mode (number base) types.

  • Hex - Hexadecimal (base 16)
  • Dec - Decimal (base 10)
  • Oct - Octal (base 8)
  • Bin - Binary (base 2)
  • HEX - Same as Hex
  • DEC - Same as Dec
  • OCT - Same as Oct
  • BIN - Same as Bin

—–

: SegmentStyle

Enumerated segment style (visual appearance) types.

  • Outline - Raised segments filled with the background color
  • Filled - Raised segments filled with the foreground color
  • Flat - Flat segments filled with the foreground color

Properties


Mode : mode

Holds the display mode of the number.


Number : numDigits

Holds the number of digits displayed in the widget.


SegmentStyle : segmentStyle

Holds the style of the number.


Boolean : smallDecimalPoint

Holds whether or not the decimal point is drawn between digits; takes up a digit of its own if false.


Number : value

Holds the value of the number.

Constructors


DzLCDNumber( DzWidget parent )

Creates a LCD number widget as a child of the given parent widget.

Parameter(s):

  • parent - The widget parent for the LCD number.

Methods


void : displayFloat( Number number )

Displays the number specified.

Parameter(s):

  • number - The decimal value to display.

Since:

  • 4.15.0.21

void : displayInt( Number number )

Displays the number specified.

Parameter(s):

  • number - The integer value to display.

Since:

  • 4.15.0.21

void : displayString( String number )

Displays the number represented by the specified string.

Parameter(s):

  • number - The number to display. Digits and symbols that can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (specified as single quote in the string) and space. Spaces are substituted for illegal characters.

Attention:

Since:

  • 4.15.0.21

void : display( String number )

Deprecated

Exists only to keep old code working. Do not use in new code. Use displayString() instead.


void : display( Number number )

Deprecated

Exists only to keep old code working. Do not use in new code. Use displayFloat() or displayInt() instead.

Signals


void : overflow()

Signature:“overflow()”

Emitted when the number is set to a value that exceeds the number of digits.