Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

I'm running a QWidget in python using an extended version of the following code: class MyWidget(QWidget): def __init__(self): super().__init__() self.timer = QTimer(self) ...
SuperNano's user avatar
  • 1,027
1 vote
0 answers
109 views

I am working on a PyQt5 application where I need to perform periodic tasks. I've come across two primary approaches: Using time.sleep() or QThread.msleep() in a subclass of QThread. Using QTimer. ...
Sardor's user avatar
  • 149
-1 votes
1 answer
296 views

I'm developing a PyQt6 app that plots data from a measurement instrument and something else related to user input, and I'm experiencing outstanding lags when I run it on Windows vs on the WSL (Windows ...
Doron Behar's user avatar
  • 2,976
0 votes
0 answers
44 views

I have 5 different popup's that displays 5 different properties all these 5 properties need to be checked periodically from CPP in order to update if there is any change in the value of property. At ...
Raja's user avatar
  • 1
0 votes
1 answer
177 views

I'm developing a PyQt6 application that deals with real-time acquisition of photon intensity tracking over time and plots it in real-time, before calling a pyo3 function for post-processing on the ...
Aurora's user avatar
  • 187
0 votes
1 answer
153 views

Background: In our Embedded QT application(based on ARM processor), there is a Qtimer which will timeout for every 20ms. Updating the user interface objects is done inside the timeout handler of this ...
Pavankumar S V's user avatar
0 votes
1 answer
143 views

I am experiencing issues where block of data written into a socket within a QTimer in a server application ,which can't be read by the client completely because the client's read process is slow, so ...
Belle's user avatar
  • 39
0 votes
1 answer
138 views

I'm trying to run multiple timers in one QThread, I expect each timer to be independent. But the final running result is not what I expected. All timers seem to be executed serially. For example, in ...
Poison's user avatar
  • 99
4 votes
0 answers
139 views

I wrote a minimal example in which my application crashes. I can't figure out what's wrong. I hope someone has thoughts about the reason for this segfault. if you increase the QTimer timeout, for ...
Narina's user avatar
  • 53
-2 votes
1 answer
209 views

I have created a simple, single thread, app in Qt6. My sole class creates a couple of timers and prints a qDebug message in the timeout slot. These messages never print. My class is created before ...
TSG's user avatar
  • 4,786
0 votes
1 answer
63 views

In this simulated example I am repeating a task every 1 second using QTimer by implementing a QObject, then move it to a QThead. The simulated task takes 0.5 second. The task runs in a new thread, ...
WEINAN WANG's user avatar
3 votes
1 answer
582 views

I’m working on a QT QML and embedded STM32 project where an oven is being controlled by a PC via serial communications. Everything was going great until I tried to add a timed heartbeat signal to let ...
user1771706's user avatar
0 votes
1 answer
264 views

I'm working on implementing a "tutorial mode" on a software that uses C++ and Qt. To this end, I need to rotate a GL view to show the user that it can move. In order to do a smooth rotation, ...
Garance's user avatar
-1 votes
1 answer
136 views

I am trying to put a QTimer inside a QThreadPool. The reason is that I need to count real-time since the start of a process (recording video), but the actual code seems to be lagging a bit and the ...
Ad Ep's user avatar
  • 13
0 votes
1 answer
359 views

Suppose a timer is fired every 1 second to execute some task, which is not CPU intensive. What is the resource heaviness of a timer itself? Related to C# perspective: How resource heavy is a Timer? [...
iammilind's user avatar
  • 70.6k
0 votes
0 answers
715 views

I have a QTimer to do stuff at intervals. Sometimes, this stuff raises an exception. When that happens, I must stop the QTimer without destroying it, so I can restart it later on. However, when I ...
AgentRev's user avatar
  • 829
2 votes
0 answers
187 views

there: I have a weird behaviour with QTimer in PyQT5 when I try to measure frames and frequency. If you set a timer with 10ms = 1 / 100 every signal message gives the time every time. It works with ...
Heavy Metal Drummer's user avatar
0 votes
0 answers
83 views

I'm working on a Qt app that creates a lot of threads and QTimers. When it exits, I get the following message printed: 2022-09-27 13:40:22.123 QObject::killTimer: Timers cannot be stopped from another ...
Bri Bri's user avatar
  • 2,052
1 vote
1 answer
1k views

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 ...
Mustafa's user avatar
  • 346
1 vote
1 answer
892 views

Let's say I have a PyQt GUI application and a QTimer running in the background using a QThread. The QTimer is set to an interval of 1 second and is running infinitely. Now the main thread gets busy ...
bugmenot123's user avatar
  • 1,197
0 votes
1 answer
670 views

i'm stucked on a Qtimer that don't start, so the number that i need to update on the GUI is never showed. i don't want to use a while loop inside the code because i need to change some values in real ...
Marcello De Paola's user avatar
1 vote
2 answers
793 views

I would like to use a QTimer in my MainWindow application. The timer should start when the thread is started. I have tried: ct_thread.h #include <QtCore> #include <QThread> #include <...
rafa's user avatar
  • 35
1 vote
2 answers
518 views

When I tried to use QElapsedTimer to clear a text in a label I couldn't find a way of using it without a QTimer. Is there a way of connecting a method so that it will do something when the ...
tad's user avatar
  • 129
0 votes
0 answers
406 views

I'm a beginner in programming and I have a problem making a label on my GUI to change its text value to inform the user of word's meaning (working on English dictionary). I would like the label to ...
Dan Check's user avatar
2 votes
1 answer
1k views

Is there a wy to reset a singleshot Timer? I set the singleShot timer to 5000ms and want to reset the timer by clicking a button so the timer starts again to count. from PyQt5 import QtCore from ...
Robert's user avatar
  • 175
2 votes
1 answer
3k views

I want to run a python while-loop for x amount of time (2 seconds) and then stop: from PyQt6 import QtCore def loop(): stop = False def stop_loop(): nonlocal stop stop = True ...
zeroalpha's user avatar
  • 373
1 vote
1 answer
1k views

In PYQT5, I want to increase the progress of the round progress bar in UI after every 10 minutes by using PyQt5 for 90 minutes. I have tried 2 methods 1st by time.sleep() and 2nd by Qtimer. 1st method ...
saman naz's user avatar
  • 113
1 vote
1 answer
2k views

I am working with serial device and set a flag (which is global variable) based on the received data. Now I want to reset the flag after a while (for example one second) by using a timer. Here is the ...
sam es's user avatar
  • 51
2 votes
1 answer
5k views

I tried the following: connext(&timer, &QTimer::timeout, this, &myClass::myMethod(_param1, _param2)); // does not work timer.setSingleShot(true); timer.start(100); The timer of type ...
Bowers's user avatar
  • 846
0 votes
1 answer
72 views

I have a qt application with cpp. The application is Falling ball game, when the ball is catched by basket the score needs to be incremented. The application uses some timerEvent to update the score. ...
Syed Iftekharuddin's user avatar
0 votes
1 answer
287 views

I am currently trying to separate my PyQT5-GUI from my serial communication to prevent a freezing GUI. Therefore, I tried to implement threading. So when I am pressing a button "Open Port", ...
user44791's user avatar
0 votes
1 answer
238 views

I have this code: from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import Qt, QTimer import sys class Ui_Timer15(object): def setupUi(self, Timer): Timer.setObjectName("...
Александр Островский's user avatar
0 votes
0 answers
526 views

I have a problem with opencv 2.4 when run on linux arm. I don't use timer in my code but when it get error Timers cannot be stopped from another thread My code void displayImage(const unsigned char *...
Nguyen Duc Thanh Hung's user avatar
0 votes
1 answer
218 views

In a function, how to understand the signal sent from Qtimer objects that I created in Qmap, how to find from which object the signal comes from in the slot function. I created Qmap above code SQL.h ...
Mahmut's user avatar
  • 7
0 votes
1 answer
123 views

I am starting a api rest server in a separate Qthread in my application. the server shall use a library which is using Q timer in several places. The compilation is ok. But i have errors in execution....
yamilyana's user avatar
0 votes
1 answer
95 views

I am working on Falling ball application, About the application: the balls keep on falling at regular intervals, and there is a basket that catches the balls. If caught then we earn a point if not ...
Syed Iftekharuddin's user avatar
0 votes
0 answers
98 views

How can I run the function I want in the code in the time interval I selected in the code I wrote in Qt? How can I set up a signal slot structure? can you show sample code? for example in the code I ...
Mahmut's user avatar
  • 7
0 votes
1 answer
956 views

I have multiple QTimer in the same thread, in the slot connected to the QTimer, I use QEventLoop for synchronization, like http requests, but I found different QTimers may affect each other when they ...
William Zhang's user avatar
0 votes
1 answer
844 views

I want to automatically update the current time in Qstatusbar. I used mainUI thread for displaying time and subthreads for other long-running tasks. This is working fine. Now, I would like to use the ...
Tam Phan's user avatar
1 vote
0 answers
116 views

I want to build an application that calculates large computations using an idle timer. The progress bar works fine for small numbers but if I enter large numbers as input the progress bar does not ...
Syed Iftekharuddin's user avatar
1 vote
1 answer
937 views

I am new to Qt programming, I want to make the timer an idle timer. The question is whether just setting the timer->start(0) will make the timer an idle timer? How can I know it's an idle timer.
Syed Iftekharuddin's user avatar
0 votes
1 answer
937 views

I am starting a Qthread in my GUI to perform an optimization function. I want to include a stopping function that can interrupt the Qthread, and end the optimization function immediately. I read that ...
Omar Zaki's user avatar
  • 181
2 votes
1 answer
899 views

I'm trying to implement a webcam using PyQt5 from an example I found (here, but not really relevant). Getting the example to work wasn't an issue, but I wanted to modify some things and I am stuck on ...
Freya W's user avatar
  • 549
0 votes
2 answers
1k views

So I have the main window. When I click a button in the main window, a new widget is created (in a new window): self.doorButton.clicked.connect(self.open_door) def open_door(self): ...
Yashoraj Agarwal's user avatar
0 votes
1 answer
87 views

I am trying to show the cpu_percent of a process (p) using p.cpu_percent(). If I use the block (interval=2), the GUI hangs out, but If I use non-block (interval=None), the first call is always (0%). ...
zezo's user avatar
  • 455
0 votes
1 answer
134 views

I have a potentially long-running task (serialise a document) which I don't want to run in the Gui thread. At the end of that task I want to update various visual aspects of the UI (menu enablement, ...
mike rodent's user avatar
  • 16.2k
2 votes
1 answer
2k views

I have this PySide app and I want to run the function pp every 1 second, but when I run the app it only ran for 1 time. import sys from PySide6.QtWidgets import QMainWindow, QApplication from PySide6 ...
Hosam Hashem's user avatar
0 votes
0 answers
151 views

**I want to design a timer that uses a flag to trigger the timer, and then start the timer count or stop the timer count. I tried some methods to fix it, but it was not triggered. Can someone help me ...
Sam Yang's user avatar
0 votes
1 answer
243 views

I have a problem in using QTimer command. I dont have any syntax error, but i have 2 error in qglobal.h and qobjectdefs_impl.h and i dont understand them. MainWindow.cpp MainWindow::MainWindow(...
javad hosseinian's user avatar
0 votes
1 answer
758 views

I created a timer in a thread and in this timer char value counts from 0 to 10. I want to display this char value on the GUI. I do not get any error but the GUI freeze when I started. Can you help me ...
Akif's user avatar
  • 51

1
2 3 4 5
7