1. Description
Shows LCD style numbers, which can display digits of almost any size, can display decimal, hexadecimal, octal, or binary numbers.
Inherited from QFrame
2. Functional Function
(1) Constructor
QLCDNumber(parent: QWidget = None) QLCDNumber(int, parent: QWidget = None) # The first parameter represents the number of numerical digits displayed
(2) Set display value
display(str) display(float) display(int) intValue() -> int value() -> float
(3) Limitation of digits
setDigitCount(int) digitCount() -> int
(4) Mode settings
setMode(self, ) mode(self) -> """ hexadecimal Decimal Octal Binary """ # You can also use the following methodsetHexMode() setDecMode() setOctMode() setBinMode()
(5) Overflow
checkOverflow(self, float) -> bool checkOverflow(self, int) -> bool
(6) Segment style
setSegmentStyle(self, ) segmentStyle(self) -> """ Outline Generate raised sections filled with background color Filled default value Generates a raised portion that fills the foreground color. Flat Generates a flat segment that fills the foreground color. """
3. Signal
#Speed when data overflowsoverflow()
This is the end of this article about the implementation of QLCDNumber in PyQt5. For more related PyQt5 QLCDNumber content, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!