Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. 'Format_xxxx' is not a member of 'QVideoFrame'
Forum Updated to NodeBB v4.3 + New Features

'Format_xxxx' is not a member of 'QVideoFrame'

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 251 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bg3009
    wrote on last edited by
    #1

    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.
    7723b827-159f-4e9a-b606-d900b091c353-image.png

    • 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.
      435327dc-0651-400e-ba06-0e24cb8a36ea-image.png

    If there is any idea or tips to fix this error, it would be really appreciated.

    Thank you!

    Christian EhrlicherC 1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      1
      • B bg3009

        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.
        7723b827-159f-4e9a-b606-d900b091c353-image.png

        • 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.
          435327dc-0651-400e-ba06-0e24cb8a36ea-image.png

        If there is any idea or tips to fix this error, it would be really appreciated.

        Thank you!

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved