Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Passing signal from QML to C++ with parameter

$
0
0
Hi, I have an application where i want to pass signal from qml to c++. code in qml as signal blockUri(int uri) mainView.blockUri(index)// calling signal in c++ is as QObject *rootObject = mpView->rootObject(); QObject::connect(rootObject, SIGNAL), this, SLOT)); void someclass::printData(int uri) { qDebug()<<“Text From QML:”<<uri; } but text is not printing in C++ code. i know i am doing something wrong. So please any one can help me.

Viewing all articles
Browse latest Browse all 4972

Trending Articles