Skip to content

PythonQt.QtGui.QLCDNumber · declarations 001

Back to PythonQt.QtGui.QLCDNumber

Bin instance-attribute

Bin: Any

Dec instance-attribute

Dec: Any

Filled instance-attribute

Filled: Any

Flat instance-attribute

Flat: Any

Hex instance-attribute

Hex: Any

Oct instance-attribute

Oct: Any

Outline instance-attribute

Outline: Any

SegmentStyle instance-attribute

SegmentStyle: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

checkOverflow

checkOverflow(num: Any) -> bool

X.checkOverflow(num) -> bool

Supplemental documentation: Qt 5 reference:

bool QLCDNumber::checkOverflow(double num) const

Returns true if num is too big to be displayed in its entirety; otherwise returns false.

See also display(), digitCount(), and smallDecimalPoint().

bool QLCDNumber::checkOverflow(int num) const

This is an overloaded function.

Returns true if num is too big to be displayed in its entirety; otherwise returns false.

See also display(), digitCount(), and smallDecimalPoint().

Upstream PySide2 reference signatures (binding differences may apply):

checkOverflow(self, num: float) -> bool
checkOverflow(self, num: int) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#checkOverflow

customContextMenuRequested

customContextMenuRequested(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QLCDNumber.customContextMenuRequested; argument details are not documented.

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QLCDNumber.destroyed; argument details are not documented.

digitCount instance-attribute

digitCount: int

Qt 5 reference:

digitCount : int

This property holds the current number of digits displayed

Corresponds to the current number of digits. If QLCDNumber::smallDecimalPoint is false, the decimal point occupies one digit position.

By default, this property contains a value of 5.

This property was introduced in Qt 4.6.

Access functions:

int digitCount() const
void setDigitCount(int numDigits)

See also smallDecimalPoint.

int QLCDNumber::digitCount() const

Returns the current number of digits.

Note: Getter function for property digitCount.

See also setDigitCount().

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#digitCount

display

display(str: Any) -> None

X.display(str)

Supplemental documentation: Qt 5 reference:

[slot] void QLCDNumber::display(double num)

This is an overloaded function.

Displays the number num.

Note: Setter function for property intValue. Setter function for property value.

[slot] void QLCDNumber::display(int num)

This is an overloaded function.

Displays the number num.

Note: Setter function for property intValue. Setter function for property value.

[slot] void QLCDNumber::display(const QString \&s)

Displays the number represented by the string s.

This version of the function disregards mode() and smallDecimalPoint().

These digits and other symbols 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 (which is specified as single quote in the string) and space. QLCDNumber substitutes spaces for illegal characters.

Note: Setter function for property intValue. Setter function for property value.

Upstream PySide2 reference signatures (binding differences may apply):

display(self, num: float) -> None
display(self, num: int) -> None
display(self, str: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#display

event

event(e: Any) -> bool

X.event(e) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QLCDNumber::event(QEvent *e)

Reimplements: QFrame::event(QEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

event(self, e: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#event

intValue instance-attribute

intValue: int

Qt 5 reference:

intValue : int

This property holds the displayed value rounded to the nearest integer

This property corresponds to the nearest integer to the current value displayed by the LCDNumber. This is the value used for hexadecimal, octal and binary modes.

If the displayed value is not a number, the property has a value of 0.

By default, this property contains a value of 0.

Access functions:

int intValue() const
void display(const QString \&s)
void display(int num)
void display(double num)

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#intValue

mode instance-attribute

mode: Any

Qt 5 reference:

mode : Mode

This property holds the current display mode (number base)

Corresponds to the current display mode, which is one of Bin, Oct, Dec (the default) and Hex. Dec mode can display floating point values, the other modes display the integer equivalent.

Access functions:

QLCDNumber::Mode mode() const
void setMode(QLCDNumber::Mode)

See also smallDecimalPoint(), setHexMode(), setDecMode(), setOctMode(), and setBinMode().

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#mode

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QLCDNumber.objectNameChanged; argument details are not documented.

overflow

overflow(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QLCDNumber.overflow; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QLCDNumber::overflow()

This signal is emitted whenever the QLCDNumber is asked to display a too-large number or a too-long string.

It is never emitted by setDigitCount().

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#overflow

paintEvent

paintEvent(arg__1: Any) -> None

X.paintEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QLCDNumber::paintEvent(QPaintEvent *)

Reimplements: QFrame::paintEvent(QPaintEvent *).

Upstream PySide2 reference signatures (binding differences may apply):

paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#paintEvent

segmentStyle instance-attribute

segmentStyle: Any

Qt 5 reference:

segmentStyle : SegmentStyle

This property holds the style of the LCDNumber

Style Result
Outline Produces raised segments filled with the background color
Filled (this is the default). Produces raised segments filled with the foreground color.
Flat Produces flat segments filled with the foreground color.

Outline and Filled will additionally use QPalette::light() and QPalette::dark() for shadow effects.

Access functions:

QLCDNumber::SegmentStyle segmentStyle() const
void setSegmentStyle(QLCDNumber::SegmentStyle)

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#segmentStyle

setBinMode

setBinMode() -> None

X.setBinMode()

Supplemental documentation: Qt 5 reference:

[slot] void QLCDNumber::setBinMode()

Calls setMode(Bin). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setHexMode(), setDecMode(), setOctMode(), and mode().

Upstream PySide2 reference signatures (binding differences may apply):

setBinMode(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#setBinMode

setDecMode

setDecMode() -> None

X.setDecMode()

Supplemental documentation: Qt 5 reference:

[slot] void QLCDNumber::setDecMode()

Calls setMode(Dec). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setHexMode(), setOctMode(), setBinMode(), and mode().

Upstream PySide2 reference signatures (binding differences may apply):

setDecMode(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#setDecMode

setDigitCount

setDigitCount(nDigits: int) -> None

X.setDigitCount(nDigits)

Supplemental documentation: Qt 5 reference:

void QLCDNumber::setDigitCount(int numDigits)

Sets the current number of digits to numDigits. Must be in the range 0..99.

Note: Setter function for property digitCount.

See also digitCount().

Upstream PySide2 reference signatures (binding differences may apply):

setDigitCount(self, nDigits: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#setDigitCount

setHexMode

setHexMode() -> None

X.setHexMode()

Supplemental documentation: Qt 5 reference:

[slot] void QLCDNumber::setHexMode()

Calls setMode(Hex). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setDecMode(), setOctMode(), setBinMode(), and mode().

Upstream PySide2 reference signatures (binding differences may apply):

setHexMode(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#setHexMode

setMode

setMode(arg__1: Any) -> None

X.setMode(arg__1)

Upstream PySide2 reference signatures (binding differences may apply):

setMode(self, arg__1: PySide2.QtWidgets.QLCDNumber.Mode) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#setMode

setOctMode

setOctMode() -> None

X.setOctMode()

Supplemental documentation: Qt 5 reference:

[slot] void QLCDNumber::setOctMode()

Calls setMode(Oct). Provided for convenience (e.g. for connecting buttons to it).

See also setMode(), setHexMode(), setDecMode(), setBinMode(), and mode().

Upstream PySide2 reference signatures (binding differences may apply):

setOctMode(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#setOctMode

setSegmentStyle

setSegmentStyle(arg__1: Any) -> None

X.setSegmentStyle(arg__1)

Upstream PySide2 reference signatures (binding differences may apply):

setSegmentStyle(self, arg__1: PySide2.QtWidgets.QLCDNumber.SegmentStyle) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#setSegmentStyle

setSmallDecimalPoint

setSmallDecimalPoint(a: Any) -> None

X.setSmallDecimalPoint(a)

Upstream PySide2 reference signatures (binding differences may apply):

setSmallDecimalPoint(self, arg__1: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#setSmallDecimalPoint

sizeHint instance-attribute

sizeHint: QSize

Qt 5 reference:

[override virtual] QSize QLCDNumber::sizeHint() const

Reimplements: QFrame::sizeHint() const.

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#sizeHint

smallDecimalPoint instance-attribute

smallDecimalPoint: bool

Qt 5 reference:

smallDecimalPoint : bool

This property holds the style of the decimal point

If true the decimal point is drawn between two digit positions. Otherwise it occupies a digit position of its own, i.e. is drawn in a digit position. The default is false.

The inter-digit space is made slightly wider when the decimal point is drawn between the digits.

Access functions:

bool smallDecimalPoint() const
void setSmallDecimalPoint(bool)

See also mode.

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#smallDecimalPoint

value instance-attribute

value: float

Qt 5 reference:

value : double

This property holds the displayed value

This property corresponds to the current value displayed by the LCDNumber.

If the displayed value is not a number, the property has a value of 0.

By default, this property contains a value of 0.

Access functions:

double value() const
void display(const QString \&s)
void display(int num)
void display(double num)

Source: https://doc.qt.io/archives/qt-5.15/qlcdnumber.html#value

windowIconChanged

windowIconChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QLCDNumber.windowIconChanged; argument details are not documented.

windowIconTextChanged

windowIconTextChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QLCDNumber.windowIconTextChanged; argument details are not documented.

windowTitleChanged

windowTitleChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QLCDNumber.windowTitleChanged; argument details are not documented.