Solved QML invalid property objectName (M16) for videooutput
-
error in qml
![alt text]( 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!
-
But is it only reported in Qt Creator? When you run your app, does it work?
-
@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!
-
That's OK then. Qt Creator sometimes does not understand QML very well (which is bad, yes... :-( ).
-
It can be annoying. Try putting
// @disable-check M16
directly before that line, that should make the compiler ignore this "false positive" warning.
-
-
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.