I know how signal and slot work on QT/C++, but I'm a bit confused about sending signal from QML to C++.
All the example and tutorial i found on the net and from nokia/qt were mainly focus on:
1. sending signal from qml to qml and/or using a rectangle with mouse area attached.
2. none of the example use the Button from import com.nokia.symbian.
3. focus on transation / java script.... cool stuff...
What I want to know is the basic stuff...
sending a signal containing a text in the text field if the button were pressed.
and processing it in QT part.
import QtQuick 1.0
import com.nokia.symbian 1.0
signal buttonSend_Clicked (string test1text, string text2text)
onClicked: buttonSend_Clicked(inputtest1.text, inputtest2.text)
class myapps : public QObject
Could someone point out my mistake??
QObject *rootObject = dynamic_cast<QObject*>(view.rootObject());
QObject::connect(rootObject, SIGNAL(buttonSend_Clicked()), &myClass, SLOT(Sendbutton_clicked());
// do some stuff