qthread
How can I make my QThread block and wait for a function called from the main thread to return a value?
I am doing some work in a QThread reimplementation. Every now and then, I\'d like to ask the user a Yes/No question, so I was planning on using QMessageBox::question(). Problem is, I can\'t call it fr[详细]
2023-04-07 10:24 分类:问答QThread won't stop / does not process a signal
I am trying to perform some work in a separate thread and stop that thread when the work is done. I have set up a connection like this[详细]
2023-04-04 22:21 分类:问答How to access widgets using qt thread?
In my program I have a widget class with text box and qthread pointer. Using qthread pointer i wan开发者_JS百科t to update the textbox continously by text selection without affect the application. But[详细]
2023-04-02 06:50 分类:问答Qt thread problem with single core CPU on Windows XP
I am developing a cross-platform fractal explorer using Qt. I am experiencing a performance problem specifically when running on a single core CPU under Windows XP (program compiled with MSVC Express[详细]
2023-03-31 14:09 分类:问答How can I protect a QThread function so it will not be called again until finished its previous work?
I\'m using a QThread and inside its run method I have a timer invoking a function that performs some开发者_StackOverflow heavy actions that take some time. Usually more than the interval that triggers[详细]
2023-03-25 04:34 分类:问答Qt - Mysterious segfaults on worker thread
I\'m instantiating QSystemDeviceInfo on a worker thread, but it causes a segfault. int BatteryInfo::getLevel() {[详细]
2023-03-23 09:22 分类:问答QPluginLoader moved to thread
I\'m building an application that will rely heavily on plugins: the core gets data from a serial interface and delivers it to each plugin so each one can decide what to do with it.[详细]
2023-03-21 09:11 分类:问答Wake up a QThread that is in sleep?
How can I wake up a QThread when it is sleeping? I have a thread that is running in the background and now and then wakes up and does some small stuff, however if I would like to stop that thread in[详细]
2023-03-20 17:57 分类:问答GUI is very sluggish using PyQt and Qthreads
I have a problem with keeping a GUI responsive using PyQt and Qthreads. What I do is spawn a worker Qthread from the GUI which is cpu heavy. The worker Qthread sends a signal containing a numerical va[详细]
2023-03-18 03:00 分类:问答Qt - Worker thread freezes the UI
This is my first experience on threading with Qt, so bear with me. I have a singleton \"system\" object which periodically executes a heavy piece of code.[详细]
2023-03-17 01:17 分类:问答