Unsolved Create square boxes on top of video stream for GUI
Hello, I am trying to recreate the GUI in the attached picture and was wondering how I would go about this? That is a live video stream with two boxes on the screen at all times at a fixed size. I have a viewer opening up already and displaying the video, I just need to get the two boxes at the fixed size overlapping the stream. Any help would be appreciated thank you!
Hi and welcome to the forums
How do you currently display the stream?
(i mean what widget did you use)
Thank you! And I am currently using the functionality of the sample "Camera" project in the examples for QT.
QWidgets or the QML one ?
If Widgets, there is
I used that overlay class form SO and it worked nicely.
QWidgets, I'll take a look and give it a try!
I hope the it works for you too. The overlay auto adjust
to parent size and you can just use its paintEvent to draw the rects.