[MeeGo-dev] A problem to click the GestureArea via TDriver API.

Tang, Shaofeng shaofeng.tang at intel.com
Wed Jun 22 01:57:43 PDT 2011


Hello Petri, and all QML experts

We meet a problem to click the GestureArea via TDriver API( all of tap, long_tap, and hold don't work for GestureArea).
Could you give us some suggestion for it?

A lot of DeclarativeComponent are defined with GestureArea in the latest MeeGo QML applications to replace MouseArea.
For instance, in the main.qml of meego-ux-settings. the component is defined as below. The whole codes are available from https://meego.gitorious.org/meego-ux/meego-ux-settings/blobs/master/main.qml

        Component {
                id: landingPageComponent
                Ux.AppPage {
                        id: landingPage
                        pageTitle: qsTr("Settings")
                        ......

                        ListView {
                                id: listView
                                ......
                                delegate: ThemeImage {
                                        id: container
                                        ......
                                        GestureArea {
                                                //id: mouseArea
                                                anchors.fill: parent

                                                Tap {
                                                        id: tapArea
                                                        onFinished: {
                                                                translator.catalog = model.translation
                                                                .......
                                                        }
                                                }
                                        }

For clicking this kind of components, I ever try to use the TDriver API "tap", "long_tap", "gesture_to", and "hold". unluckily, none of them work.
In an old qml application in which MouseArea is used, the API "tap" work well.

Do you have any suggestion for this issue?


Looking forward to your reply.


Thanks & Best Regards
Shao-Feng


More information about the MeeGo-dev mailing list