Error: Unable to determine callable overload
-
I have a static qml object called CommandsEntites with a signal commandCprFinish() that is connect to other signals from several different dinamic Node objects, called LineThick and CircleThick.
This two are derived from a base Node item called EntityTemplate, where the receiver signal is defined.The code worked fine until Qt6.4.3, but in Qt6.5 and 6.6, I'm getting run time error
Error: Unable to determine callable overload. Candidates are:Maybe it's a Qt bug, since Qt6.5 ? Also can someone confirme if the dynamic objects are deleted, the connections are safely destroyed without the need of using disconnect() ?
Parts of the code
CommandsEntites.qml
Node { signal commandCprFinish(pos: vector3d) function receiveEvent(evt: int, p: vector3d, command){ ..... commandCprFinish(p)// Error: Unable to determine callable overload. Candidates are: ........ } }MainView.qml
Item { CommandsEntites { id: commands } function addCircle(center: vector3d, radius: vector3d) { var entityCircle = Qt.createComponent("qrc:/qml/qmlEntities/CircleThick.qml") let newCircle = entityCircle.createObject(entitesManager) ..... commands.commandCprFinish.connect(newCircle.commandCprFinish) ....... } function addLine(p0: vector3d, p1: vector3d){ var entityLine = Qt.createComponent("qrc:/qml/qmlEntities/LineThick.qml") let newLine = entityLine.createObject(entitesManager) ....... commands.commandCprFinish.connect(newLine.commandCprFinish) ...... } }EntityTemplate.qml
Model { .... signal commandCprFinish(pos: vector3d) }LineThick.qml
EntityTemplate { onCommandCprFinish: function(pos){ } }CircleThick.qml
EntityTemplate { onCommandCprFinish: function(pos){ } } -
I have a static qml object called CommandsEntites with a signal commandCprFinish() that is connect to other signals from several different dinamic Node objects, called LineThick and CircleThick.
This two are derived from a base Node item called EntityTemplate, where the receiver signal is defined.The code worked fine until Qt6.4.3, but in Qt6.5 and 6.6, I'm getting run time error
Error: Unable to determine callable overload. Candidates are:Maybe it's a Qt bug, since Qt6.5 ? Also can someone confirme if the dynamic objects are deleted, the connections are safely destroyed without the need of using disconnect() ?
Parts of the code
CommandsEntites.qml
Node { signal commandCprFinish(pos: vector3d) function receiveEvent(evt: int, p: vector3d, command){ ..... commandCprFinish(p)// Error: Unable to determine callable overload. Candidates are: ........ } }MainView.qml
Item { CommandsEntites { id: commands } function addCircle(center: vector3d, radius: vector3d) { var entityCircle = Qt.createComponent("qrc:/qml/qmlEntities/CircleThick.qml") let newCircle = entityCircle.createObject(entitesManager) ..... commands.commandCprFinish.connect(newCircle.commandCprFinish) ....... } function addLine(p0: vector3d, p1: vector3d){ var entityLine = Qt.createComponent("qrc:/qml/qmlEntities/LineThick.qml") let newLine = entityLine.createObject(entitesManager) ....... commands.commandCprFinish.connect(newLine.commandCprFinish) ...... } }EntityTemplate.qml
Model { .... signal commandCprFinish(pos: vector3d) }LineThick.qml
EntityTemplate { onCommandCprFinish: function(pos){ } }CircleThick.qml
EntityTemplate { onCommandCprFinish: function(pos){ } } -
J johngod has marked this topic as solved on