Results 1 to 2 of 2

Thread: Simulating mouseclick on a HbAction from qtestlib

  1. #1

    Default Simulating mouseclick on a HbAction from qtestlib

    Hello Cute(Qt) friends,

    Is it possible to simulate a mouse click on a HbAction which derives from QAction (considering that it is not a widget)?

    Well, to add a bit of background information. I am trying to automate tests for a Qt application in the s60 environment. I am using the qtestlib framework.

    I have a HbMenu(which is a QWidget) which has few HbAction's. I am able to simulate a mouse click on the HbMenu using,
    void QTest::mouseClick ( QWidget * widget, Qt::MouseButton button, Qt::KeyboardModifiers modifier = 0, QPoint pos = QPoint(), int delay = -1 )

    Now, when clicking the Menu, the drop down appears with items, which are HbAction's.

    Now my question is how do I simulate a mouse click on an HbAction (which derives from QAction)?

    Is it really possible Or is there another way to do it ? Any help would be much appreciated.

    Thanks,
    LC.

  2. #2
    Join Date
    Oct 2009
    Location
    Mexico
    Posts
    81
    Thanks
    6
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Simulating mouseclick on a HbAction from qtestlib

    the follow link whot the autotest class for the QAction class.

    http://qt.gitorious.org/qt/qt/blobs/...st_qaction.cpp

    the code to test a QAction subclass must be similiar to this.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.