PDA

View Full Version : How to use QThread to run a task and update GUI?



Gokulnathvc
4th August 2017, 12:16
I would like to create an application that will fetch images from the camera(in a separate thread) continuously and update the GUI controls. How to achieve this?

patrik08
4th August 2017, 12:47
And your Question?

I would do it on the trayicon an always open app ... never close like dropbox app.. and append it in the loader event from sistem..
and snif dir mounted by camera or usb...
suggest basic app like ... (i search .i have on disk..)
after capture all qt close event .... you wand realy close this app question..

d_stranz
4th August 2017, 16:17
I would like to create an application that will fetch images from the camera(in a separate thread) continuously and update the GUI controls. How to achieve this?

I would start by reading the documentation of Qt's Multimedia framework (https://doc.qt.io/qt-5/multimediaoverview.html) and seeing if there is something already built you can use for your purpose instead of reinventing the wheel.

patrik08
5th August 2017, 09:11
Long time a go i make a simple html editor
https://www.opendesktop.org/p/1131236/
and this tool use a special QThread each image a new Thread to get 10 or 80 remote image from document...
but now

XHTML Wysiwyg Qeditor 9-10 years old.. the old version have a incombatible QHttp class in 5.9 ... QT(CEO) dont like make class compatible in back version.. from qt4 to qt5

https://www.opendesktop.org/p/1131236/

QT(CEO) is a strange man... in his mind:
Why should he ask the people what use and what is desired?
this man like only 1/2 success..
I wanted a qt license ... but I'm disappointed

MC donald ask people evry day .. what is desired?

ChrisW67
6th August 2017, 08:11
QHttp started life in Qt3, has been deprecated since version 4.4 of Qt hit the streets in 2008 with QNetworkAccessManager, and marked obsolete since 4.8. I think retiring it after nearly ten years of warnings in perfectly reasonable.