未找到 QAbstractVideoSurface 文件
因此,我已经安装了qtmultimedia
,在图片中,您可以看到已安装的所有模块。
然后,我在项目的Qmake中添加了模块
QT += multimedia
QT += multimediawidgets
,并且可以轻松地使用QvideOwidget
或QMediaPlayer
和IT编译的内容。但是包括qabstractVideOsurface
不起作用!
#include <QAbstractVideoSurface> //file not found
我已经尝试更新组件并安装QT 6.3.0,但是结果是相同的。
我错过了什么模块,或者也许是一个错误?
So I've installed QtMultimedia
and in the picture, you can see all the modules installed.
Then I added modules to my project's qmake
QT += multimedia
QT += multimediawidgets
And I can easily use stuff like QVideoWidget
or QMediaPlayer
and it compiles. But including QAbstractVideoSurface
doesn't work!
#include <QAbstractVideoSurface> //file not found
I've tried updating components and installing Qt 6.3.0, but the result is the same.
What module did I miss or maybe it's a bug?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Qt 6.0.0 及更高版本中:
请阅读Qt Multimedia 的更改。
In Qt 6.0.0 and higher versions:
please read Changes to Qt Multimedia.