Qt 6.12 LTS is out! See what's new in the release
blog
QTConcurrent & QFuture in Qwidget
General and Desktop
1
Posts
1
Posters
922
Views
1
Watching
-
I have a Qwidget whit some slot and signal and function ...... I need to run one of these function (read data from modbus) during the operator work on the gui.
I tried to use qtconcurrent in some bad way :
qframe (parent),
ui(new Ui::mywiget)
{QFuture<void> future = QtConcurrent::run(this, &myFunction);
}
..... but I have not quite figured out how to use qtconcurrent qfuture and in this case .... can I have some help (I read with difficulty English).