Unsolved Call function in ui.qml!
-
Please help me!
how can i call a c++ function in ui.qml file?! -
hi @Hesam you can't, functions are not supported in ui forms. https://doc.qt.io/qtcreator/creator-quick-ui-forms.html#javascript-functions
Why do you need to call a function in the .ui.qml ? Why not call it in the component (.qml) -
thank you for your response
I started a project on Qt Design Studio and then convert it into a Quick project
Now the only files I have are ui.qml files
Now I need to call the signals from the c ++ files
this is my question: how can i call c++ function when i clicked on a shape in ui.qml file?