Results 1 to 3 of 3

Thread: How to emulate button click? For example button "P". ?

  1. #1
    Join Date
    Nov 2012
    Posts
    16
    Qt products
    Qt4

    Default How to emulate button click? For example button "P". ?

    How to emulate button click? For example button "P". ?

  2. #2
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to emulate button click? For example button "P". ?

    QAbstractButton::animateClick(int msec)

  3. #3
    Join Date
    Nov 2012
    Posts
    16
    Qt products
    Qt4

    Default Re: How to emulate button click? For example button "P". ?

    Why this code not working?
    QTest::mouseClick(this,Qt::LeftButton,0,QPoint(10, 40),-1);
    connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(getHttp()));

Similar Threads

  1. Replies: 2
    Last Post: 11th May 2012, 10:38
  2. Replies: 3
    Last Post: 8th December 2011, 19:21
  3. Replies: 9
    Last Post: 2nd November 2011, 09:12
  4. "Change widget class on button click" problem
    By utkozanenje in forum Newbie
    Replies: 3
    Last Post: 23rd May 2011, 00:40

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.