Hello Majdi
You can create a new class in C++
Add it to RingQt project file
And wrap it using configuration files.
We are using this way to support (Signals and Slots)
For example, we have the next class (GPushButton) in C++ code that inherit (QPushButton)
This class define the clicked() signal to call the next slot (that call Ring code)
void GPushButton::clickedSlot()
{
if (strcmp(this->cClickEvent,"")==0)
return ;
ring_vm_runcode(this->pVM,this->cClickEvent);
}
Using this way, You can support calling Ring code from QML
QML ----> Call C++ Code ----> Call Ring Code
Greetings,
Mahmoud