qthread Questions

1

I am adding a PyQT UI to an existing application. I have to initialize the QAppliaction via a callback that I receive from that application on the main thread. I can't do that synchronously from th...
Maxie asked 30/9, 2022 at 20:7

7

Solved

Questions: What is the best practice for keeping track of a thread's progress without locking the GUI ("Not Responding")? Generally, what are the best practices for threading as it appli...
Olives asked 20/2, 2009 at 14:0

2

Solved

I tried to do this : connect(this, SIGNAL(signalClicked(int&)), classA, SLOT(doWork(int&))); But I get the message in the title. So I've explored the internet and I came up with this sol...
Junco asked 13/6, 2013 at 9:15

3

I'm having problem with QThreads in python. I want to change background color of label. But My application crash while starting. "QThread: Destroyed while thread is still running" class MainWind...
Keeleykeelhaul asked 29/3, 2013 at 11:59

3

Solved

I am using QtCore.QThread (from PyQt4). To log, I am also using the following formatter : logging.Formatter('%(levelname)-8s %(asctime)s %(threadName)-15s %(message)s') The resulting log is : ...
Twister asked 1/10, 2012 at 3:9

5

Solved

i read this article How To Really, Truly Use QThreads; The Full Explanation, it says instead of subclass qthread, and reimplement run(), one should use moveToThread to push a QObject onto QThread i...
Effortful asked 2/12, 2013 at 9:27

1

Solved

Borrowing code from : Progress Bar Does not Render Until Job is Complete , I tried to to find way to quit/kill a Qthread while it is working, here my code, you can quit the main window while progre...
Chyack asked 10/3, 2022 at 10:36

2

Solved

I'm trying to develop a software with PyQt, but I often get stuck on software crashes without debug information (only the exit code 0xC0000409). I'm using QThread, and I wrote a system like this: ...
Aureliaaurelian asked 12/10, 2017 at 13:1

3

Solved

Basically I need the same thing that is done like this in Java: SwingUtilities.invokeLater(()->{/* function */}); Or like this in javascript: setTimeout(()=>{/* function */}, 0); But wi...
Scurrility asked 2/3, 2017 at 21:34

3

Solved

I'm trying to learn how to use QThreads in a PyQt Gui application. I have stuff that runs for a while, with (usually) points where I could update a Gui, but I would like to split the main work out ...
Ciracirca asked 2/6, 2013 at 5:9

2

A program that runs a bat file which contains instruction for running an executable(longTask) using Qthread but it doesn't work as expected when I create an executable using Pyinstaller with the fo...
Guipure asked 31/1, 2018 at 7:35

7

Solved

I have a program which interfaces with a radio I am using via a gui I wrote in PyQt. Obviously one of the main functions of the radio is to transmit data, but to do this continuously, I have to loo...
Laspisa asked 21/7, 2011 at 21:43

3

Solved

What are the differences between QThreads and QRunnable ? When should I use QThread and when QRunnable ?
Newmann asked 28/5, 2013 at 12:15

3

Solved

This is a follow up question to a previous one I posted earlier. The problem is how to stop (terminate|quit|exit) a QThread from the GUI when using the recommended method of NOT subclassing Qthread...
Recollect asked 26/4, 2013 at 23:50

5

Solved

I know this has been asked many times before. I read all of those threads, and my case seems different. Everybody else who has this trouble has a few straightforward causes that I think I’ve ruled ...
Aurelia asked 25/11, 2014 at 15:58

1

Solved

I am using requests to issue a get on a webpage where new data is added as events occur in the real world. I want to continue getting this data as long as the window is open so I set stream = True ...
Populous asked 17/12, 2019 at 17:59

4

I am trying to start a Timer in a worker thread's event loop, but I get this error: QObject::startTimer: Timers can only be used with threads started with QThread Whats wrong with this? #include...
Gaud asked 14/3, 2014 at 8:38

5

Solved

The Qt documentation for QThread says to create a class from QThread, and to implement the run method. Below is taken from the 4.7 Qthread documentation... To create your own threads, subclass...
Carrycarryall asked 4/11, 2010 at 1:31

4

I have created a separate class for gstreamer to stream videos. This class runs on separate thread by using moveToThread(). I am using Qt5.5 for development. When I issue startcommand on main threa...
Handgrip asked 17/12, 2015 at 1:31

3

Solved

I have the following code that performs a background operation (scan_value) while updating a progress bar in the ui (progress). scan_value iterates over some value in obj, emitting a signal (value_...
Emlin asked 23/12, 2013 at 22:30

3

Solved

From reading this blog, this blog and some others, Subclassing QThread is bad practice. So I tried to apply this method. But my problem is that I have a QTimer and a QTcpSocket in the class I want...
Hath asked 8/10, 2013 at 15:57

1

Solved

I employed QThread using a worker object after reading extended discussions on how QThread should be used and overwriting its run method via subclassing it is not the proper method. However, in the...
Individualize asked 27/1, 2019 at 23:48

8

Solved

After reading some articles like this about Qt Signal-Slot communications I still have a question concerning the queued connection. If I have some threads sending signals all the time to each othe...
Jakoba asked 1/1, 2014 at 8:52

1

I have a large module from a separate project, which I wanted to integrate into a GUI. The module does some calculations that take a couple of minutes, and I want to keep the GUI responsive during ...
Helsinki asked 24/9, 2018 at 12:28

3

QObjects can easily become threadless, when their work thread finishes ahead of them. When this happens, Qt doesn't release their timer ids, even though the timers are not active anymore. Thus, a Q...
Eolithic asked 1/6, 2018 at 4:24

© 2022 - 2024 — McMap. All rights reserved.