Calling QCamera::SetViewfinder in examples/declarative-camera



  • Hi,

    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:

    @Camera {
    id: camera
    x: 0
    y: 0
    ...@

    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");

     camObject->setProperty("x", 100);@
    

    But how can i call a function that is neither has been declared with Q_INVOKABLE nor is a slot?

    Thanks in advance.


  • Moderators

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.