'Format_xxxx' is not a member of 'QVideoFrame'
-
Hi guys, I am currently building a QR code related project using Scode submodule and struggling with QVideoFrame(QtMultimedia) to build this project.
Here is what I have got.
- I already installed QtMultimedia and call into the project file by following the below code
include("../SCodes/src/SCodes.pri") QT += core gui sql multimedia
-
When I do
#include <QVideoFrame>
, it does not show any errors. -
This is the file hierarchy of SCodes from my project.
If there is any idea or tips to fix this error, it would be really appreciated.
Thank you!
-
@bg3009 said in 'Format_xxxx' is not a member of 'QVideoFrame':
When I do #include <QVideoFrame> , it does not show any errors.
That is probably because you are now including the full declaration of QVideoFrame where, without this include, you only have a forward declaration that a class QVideoFrame exists.
-
Hi guys, I am currently building a QR code related project using Scode submodule and struggling with QVideoFrame(QtMultimedia) to build this project.
Here is what I have got.
- I already installed QtMultimedia and call into the project file by following the below code
include("../SCodes/src/SCodes.pri") QT += core gui sql multimedia
-
When I do
#include <QVideoFrame>
, it does not show any errors. -
This is the file hierarchy of SCodes from my project.
If there is any idea or tips to fix this error, it would be really appreciated.
Thank you!
@bg3009 said in 'Format_xxxx' is not a member of 'QVideoFrame':
If there is any idea or tips to fix this error, it would be really appreciated.
Either use Qt5 since your code is using Qt5 QVideoFrame enums or fix your code for Qt6 and use QVideoFrameFormat.