What is the best way to display results (e.g. position of a detected object) that have been calculated in the DoImageProcessing() Method (SingleStreamHandler/MultiStreamHandler class) in a Qt UI?
My current approach is to create two objects: the 1st object’s class camerahandler has been derived from SingleStreamHandler and 2nd objects class mainwindow derived has been derived from QWidget. The camerahandler holds a pointer of the mainwindow object. Everytime DoImageProcessing() calculates new results the camerahandler uses this pointer to call a function of the mainwindow object that updates the content of a QLabel or QGraphicsTextItem in order displays the results. Methods like setText() or setPlainText() will be used with QLabel and QGraphicsTextItem. With QLabel everything works fine. But with QGraphicsTextItem the following Error occurs while running the program:
QObject: Cannot create children for a parent that is in a different thread.emphasized text