I have a NumberAnimation where the target is a dynamic qml Item object, created with Qt.createComponent().
The code works fine but I always get a error in QtCreator Aplication Output window, I don't know how to remove that annoying error.

Qt Code:
  1. property var badJoeObj: ({})
  2.  
  3. NumberAnimation {
  4. id: moveBadJoeToAnotherScreen
  5. duration: 1000
  6. }
  7.  
  8. function moveBadJoe2AnotherScreen(){
  9. moveBadJoeToAnotherScreen.target = badJoeObj // <- Error: Cannot assign QJSValue to QObject*
  10. ...
  11. }
To copy to clipboard, switch view to plain text mode