Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Missing image about my kinect-opencv Qt program
GermanGerm last edited by A Former User
i've worked with at program using Opencv to show the image from Kinect v2 and Qt to build a ui.
Then it comes out that cv::imshow() is working but Qimage process isn't.
Can someone discuss the issue with me?
Maybe it's not the correct way to use QTimer like this or just dont put while(1) in the slot function?
my code on github:
code reference from this link:
Hi and welcome to devnet,
Putting an infinite loop like that in a slot will block the event loop thus freeze your application UI. You either need to do the grabbing from another thread or use a QTimer (watch out for the speed of the function).
Note that OpenCV can also use Qt as UI backend.
VRonin last edited by
QCoreApplication::processEvents();inside your loop. if it solves your problem the the infinite loop is causing it