承接Qt/C++软件开发项目,高质量交付,灵活沟通,长期维护支持。需求所寻,技术正适,共创完美,欢迎私信联系!
一、碰到的问题:
用 QOpenGLWidget 显示YUV数据视频时,部分电脑设置全屏时会黑屏。
二、 Qt 给出的方案
Fullscreen OpenGL Based Windows
When a window is using an OpenGL based surface and is appearing in full screen mode, problems can occur with other top-level windows which are part of the application. Due to limitations of the Windows DWM, compositing is not handled correctly for OpenGL based windows when going into full screen mode. As a result, other top-level windows are not placed on top of the full screen window when they are made visible. For example, menus may not appear correctly, or dialogs fail to show up.
A window can use an OpenGL based surface either explicitly when

本文探讨了使用QOpenGLWidget在Qt中处理YUV视频时全屏下黑屏的问题,并分享了Qt官方的解决方案,通过设置QWindowsWindowFunctions以解决OpenGL全屏模式下窗口层级问题。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



