All Questions
Tagged with qt5 multithreading
91
questions
0
votes
0
answers
37
views
Is there a way to continue the loop of sending messages to MQTT broker after each ID flag called?
I have 2 programs:
"updatethread.h":
#ifndef
#define
#include <QThread>
#include <QDialog>
#include <QLabel>
#include <QPushButton>
#include <vector>
#include &...
0
votes
0
answers
54
views
PyQT slot calls seem to jump to the front of the event loop
I'm writing a GUI in PyQT to control some hardware. I've had a lot of problems with one particular instrument that I'm accessing through a company provided dll. It seems like something in the dll ...
0
votes
1
answer
67
views
Qt5, QML, how to deliver some signal from background thread to multiple windows
I'am working on a small Qt5 project that needs to communicate with a piece of hardware and signal more than one window. I create an object (a thread communicating with a device) in main function and &...
0
votes
0
answers
34
views
a qt slot in the same thread can be executed concurrently
My goals: understand better Qt and avoid race condition :)
I have a slot connected to a QTimer::timeout (instancied in the same thread) and that could be also called by a slot connected to WebSocket::...
1
vote
0
answers
105
views
Are changes to an atomic variable with std::memory_order_relaxed visible to another thread with the Qt's signal-slot mechanism?
In C++/Qt, when modifying an atomic variable with std::memory_order_relaxed before emitting a signal, are the changes guaranteed to be visible to a slot connected to this signal with Qt::...
-2
votes
1
answer
67
views
Qthreading and signal emiting from it
doit is a Qthread subclass with a signal kif() but the signal emitting is not working I want to show the resualt of gav() on one of my editLines at the same time as its changes inside gav() pls help :(...
0
votes
1
answer
284
views
QThreading in QT and update GUI at the same time
Hello Im trying to print my result from a thread to textBrower in qtwidget QT but I cant, either I get error or the program wont compile
is there another way ?? how can I change the textBrowser ...
0
votes
1
answer
127
views
Why will threading with Qt 5.12 successfully update a QLabel in one function but will crash in another similar function?
Currently writing a GUI application that launches from and interfaces with The Foundry's Nuke, a visual effects compositing software (although this is not the issue AFAIK, since it's repeatable inside ...
1
vote
1
answer
333
views
How to wait for QThread eventDispatcher being ready?
I'm using QThread's event loop to communicate with worker threads.
I noticed that I can't use the thread's event loop just after a start.
The following code does not work, as threadEventDispatcher ...
1
vote
1
answer
313
views
Qt5 + CMake + QThread: the signal from abstract base class is not connected to the slot in another thread
I implemented a hierarchy of classes to handle sensor interaction in a multithreaded QThread-based manner, as how it is recommended in Qt documentation. Here I have the header file types.h with the ...
0
votes
2
answers
267
views
delete Q_GLOBAL_STATIC in correct thread
I have an application consisting of an executable and several DLLs.
The exe links a dll statically. This dll creates a worker thread which instantiates a Q_GLOBAL_STATIC object (first access). So this ...
0
votes
1
answer
476
views
How to run it on another Qt thread?
With Qthread in mind I tried the following but it seems everything is still running in the same thread.
main.cpp
#include "widget.h"
#include <QApplication>
#include "core.h&...
1
vote
1
answer
513
views
Why can't I update the QTableView model inside a thread automatically?
Introduction:
I'm using QT5 and I want to update a TableView where my model for the TableView is updated inside a thread.
*Method
I create a table like this and set it's columns and rows.
/* TableView ...
0
votes
1
answer
63
views
Creating new object placed in wrong thread
I have Qt5/C++ code that runs in a thread. Main (thread #0) creates my new thread (thread #1), and there I created a new object ("hardware").
I would expect "hardware" object to ...
2
votes
1
answer
124
views
How to use Qt multithreading for parallel list processing?
I'm using qt to make software that analyses a large amount of data. The data consist of individual "Uber" orders with information such as order time, start location, and end location, and I ...