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. QML invalid property objectName (M16) for videooutput
Forum Updated to NodeBB v4.3 + New Features

QML invalid property objectName (M16) for videooutput

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 5 Posters 2.6k Views 1 Watching
  • 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.
  • DQUY05D Offline
    DQUY05D Offline
    DQUY05
    wrote on last edited by
    #1

    error in qml
    ![alt text](433a93be-0a1d-45cc-b00f-5cb6bd4439d9-image.png image url)

    .qml

    import QtQml 2.12
    import QtQml.Models 2.3
    import QtQuick 2.12
    import QtQuick.Window 2.12
    import QtQuick.Controls 2.5
    import QtQuick.Layouts 1.0
    import QtMultimedia 5.12
    import QtQuick.Controls.Material 2.0
    

    I moved the imports to the top one by one but still got the error,
    I really need to fix this error, can anyone help me?

    Thanks!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      But is it only reported in Qt Creator? When you run your app, does it work?

      (Z(:^

      DQUY05D 1 Reply Last reply
      0
      • sierdzioS sierdzio

        But is it only reported in Qt Creator? When you run your app, does it work?

        DQUY05D Offline
        DQUY05D Offline
        DQUY05
        wrote on last edited by
        #3

        @sierdzio said in QML invalid property objectName (M16) for videooutput:

        But is it only reported in Qt Creator? When you run your app, does it work?

        yes, I don't see an error when running, so I wonder if it's working

        Thanks!

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          That's OK then. Qt Creator sometimes does not understand QML very well (which is bad, yes... :-( ).

          (Z(:^

          1 Reply Last reply
          0
          • SeDiS Offline
            SeDiS Offline
            SeDi
            wrote on last edited by
            #5

            It can be annoying. Try putting

            // @disable-check M16
            

            directly before that line, that should make the compiler ignore this "false positive" warning.

            1 Reply Last reply
            2
            • J Offline
              J Offline
              Jaap Crezee
              wrote on last edited by
              #6

              https://bugreports.qt.io/browse/QTCREATORBUG-24742

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Archie888
                wrote on last edited by Archie888
                #7

                I got rid of such error by restarting Qt Creator. I did do the

                // @disable-check M16
                

                , and after restart, the error was gone, and there was message: "Unnecessary message suppression. (M31)", so I removed the suppression.

                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