Unsolved How to connect to MouseArea clicked() signal from C++
-
I can connect to the clicked signal of the QML Button type like this:
QObject::connect(button, SIGNAL(clicked()), this, SLOT(on_clicked()));
How do I connect to the clicked(mouse) signal of the QML MouseArea type?
-
MouseArea { anchors.fill:parent onClicked:{ console.log("Mouse Clicked: Do stuff here") } }
-
Sorry that I did not repeat the entire title in the question.
Hereby I do that: How do I connect to the clicked(mouse) signal of the QML MouseArea type in C++? -