A QLCDNumber is a class from the Qt Toolkit which provides a widget that displays a number with LCD-like digits.
Questions tagged [qlcdnumber]
29 questions
4
votes
2 answers
Adding a simple clock to a GUI
I have some code for a very generic/blank GUI with some labels and pushbuttons and an LCD widget. I also have some code for a separate window which just uses an LCD widget to display the time. My question is how do I insert to code for the clock…

Chris
- 53
- 1
- 5
4
votes
1 answer
QLCDNumber numbers can't be centered
Why QLCDNumber numbers can't be centered when the number of digits is lower than the number of digits allowed in the parameters of QLCDNumber ?
Can I bypass this ?
user4473281
3
votes
1 answer
What influences the visibility of QLCDNumber digits?
I do have the following code:
Address = new QLCDNumber(this);
Address->setDigitCount(4);
Address->setSegmentStyle(QLCDNumber::Flat);
Address->display(mValue);
mainLayout->addWidget(Address);
Value = new QLCDNumber(this);
…

katang
- 2,474
- 5
- 24
- 48
3
votes
3 answers
Update LCD Number countdown
I'm very new to Python and I have made a very simple countdown timer. The GUI was created in Qt Designer. There is a spin box for input of seconds, a start button and an LCD number counter. The counter counts down fine using the code below:
def…
user5559416
2
votes
1 answer
How can I display multiple numbers on QLCDNumber Screen?
I am trying simple calculator with Qt Designer but I couldn't display numbers on QLCDNumber as multiple.
For example when I clicked once pushButton_1, displays (1) on screen,no problem but I clicked second time doesn't display (11).When I use…

akifkocas
- 23
- 2
2
votes
1 answer
PyQt5 QLCDNumber Display
I´m new to PyQt5 have been playing with it for about two weeks now and I have encountered an issue with the QLCDNumber display method. I want to be able to display more than 5 digits which I currently can´t with the code I have. After I input the…

Carlos Dias
- 23
- 1
- 3
2
votes
1 answer
Access a QLCDNumber object from a external function
My python script need to change one object lcd_p1 every time the function wait_thread_v1 is call every second by a thread t1, but how do this? I don't know how to access this object inside the function? Anyone can help?
vazao1 = 12
global…
2
votes
1 answer
Change QLCDNumber colour when a specific Value is read using pyqt5
I have a code which reads sensor data and outputs it to a LCD number I am using python3 and pyqt5.
Now What i've been tyring to do with no luck is change the background colour of the LCD number when it reaches a certain value. e.g. when the value…

Almaas Shah
- 125
- 2
- 14
1
vote
1 answer
PySide2 how to use Qtimer like time.sleep
I have a simple GUI App, it's a timer with LCD display I have problem with delaying one function that's responsible for counting down the time it's should count down every second, but it's count the minute in one second, it for loop function here…

Mustafa
- 198
- 1
- 7
1
vote
0 answers
How to link a slot in the code with a QWidget in mainwindow
I am a beginner with signal & slots in QtCreator.
I would like to know how to connect a signal declared in mainwindow code in a Qwidget LCDNumber include in the mainwindow.
Because even if my ManWindow signal is diclared correctly (I guess)
I…

Nicolas Brx
- 31
- 4
1
vote
1 answer
Pyqt5 QLCDNumber is not showing seconds (third object)
I have a QLCDNumber I need to show 3 parts (hrs:minutes:seconds). So, I set it as lcdnumber.display("00:00:00"), it show only two parts (00:00). I think the problem is with ":". I tried to separate and use text manipulation, it didn't work, only…

Dr. Zezo
- 395
- 2
- 17
1
vote
2 answers
How to display Hour, Minute values from QTimeEdit to corresponding LCD's?
I used QTimeEdit to edit time. But when I clicked "ok" the output is HOUR: 16 MINUTE: 8, no matter what number I put in QTimeEdit. Thus, I want to know what function I must add to correct the set time in QTimeEdit.
from PyQt5 import QtCore, QtGui,…

Weljade Pardillo
- 21
- 1
- 4
1
vote
1 answer
Align QLCDNumber text to right
I have QGridLayout in which I insert QLCDNumber as follows:
self.mainLayout.addWidget(display, 0, 0, 1 , 5)
Everything is quite fine but the digit (0 by default) is 'moving' from center to right while window scaling. Can someone give me a hint how…

TomKo1
- 214
- 2
- 14
1
vote
2 answers
Display Sensor Output on QLCDNumber using PyQT5
So I have developed a code which will detect a voltage off a transducer and then output an average voltage, my question here is how can I get this value to update as my sensor value changes, currently it is prinitng the initial value and then not…

Almaas Shah
- 125
- 2
- 14
1
vote
3 answers
Qt QLCDNumber issue
I am making a timer/stopwatch with Qt Creator. But, my reset function (reset button clicked) is not working as I want it to. I want it to stop the timer and set the display (QLCDNumber) to 0. Instead, the timer is stopped but the display numbers…

cppxor2arr
- 295
- 2
- 12