User Tools

Site Tools


DzLCDNumber

DAZScript 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 )

Signals

voidoverflow ()

Detailed Description

A DzLCDNumber 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 the decimal point is drawn between digits - otherwise it takes up a digit of its own.


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.

Signals


void : overflow()

Signature:“overflow()”

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