问题描述
我想做类似我下面发布的图片的事情:
I would like to do something like the picture I post just below:
基本上,我想在一个Qlabel上显示一个垂直布局,以在该QLabel中渲染摄像机流,并且垂直布局中的按钮与下面的视频一起显示.
Basically, I would like to show a vertical layout over one Qlabel for rendering a camera stream in that QLabel, and the buttons in my vertical layout are shown with the video under.
提前谢谢.
推荐答案
为什么要在QLabel上放置摄像机流?只需使用QCameraViewFinder小部件,请参见此示例.
Why would you put a camera stream on a QLabel? Just use a QCameraViewFinder widget, see this example.
然后,即使使用QtCreator设计器,也可以将所需的任何内容放置在相机小部件上.
Then, even using the QtCreator designer, you can put anything you want over the camera widget.
只需记住调用 yourwidget-> raise()使其可见即可.
Just remember to call yourwidget->raise() to keep it visible.
这篇关于布局下的Qlabel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!