Calling QCamera::SetViewfinder in examples/declarative-camera
i'm trying to implement a camera app with some kind of image processing. I use "the declarative-camera example":http://doc.qt.nokia.com/qtmobility/declarative-camera.html as a starting point.
Inside the file declarative-camera.qml there is:
to do image processing i have to modify the QCamera object used here. To be exact, I have to call QCamera::SetViewfinder.
inside the qmlcamera.cpp this works perfectly (after adding objectName: "camera" to declarative-camera.qml):
@ QObject camObject = object->findChild<QObject>("camera");
But how can i call a function that is neither has been declared with Q_INVOKABLE nor is a slot?
Thanks in advance.
bq. But how can i call a function that is neither has been declared with Q_INVOKABLE nor is a slot?
I don't believe you can.