Home > Mobile >  Qwidget sea surveillance video, shown on the drawing and not flicker in the video
Qwidget sea surveillance video, shown on the drawing and not flicker in the video

Time:10-17

Please issue of Qt,
Expect to achieve the effect: Qwidget displayed on sea surveillance video, then can draw on video dynamic rectangular box,
It is now:
1, pass the Qwidget handle to hai kang monitoring camera SDK, to display video streaming to the Qwidget, HWND handle=HWND (this - & gt; WinId ());
2, rewrite paintEvent (QPaintEvent * event) function, draw a rectangle,
Now the problems are: video has been flashing,
What method, can draw a rectangle in the video frame, and do not flicker,
Reference links:
https://www.jianshu.com/p/04dd5b892a48
https://blog.csdn.net/u011430225/article/details/75952697

CodePudding user response:

Since you pass the HWND widget to the SDK, stop in its paintEvent painting stuff
Make a special widget to the SDK, then in addition to a widget is dedicated to the drawing of rectangular, fold the one in front
  •  Tags:  
  • Qt
  • Related