Results 1 to 17 of 17

Thread: Qtest does not emit signal

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Feb 2016
    Posts
    9
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: Qtest does not emit signal

    if (event->button()==Qt::RightButton){
    qDebug() << Qt::RightButton << pos();
    QPoint Mpush = pos();
    QTest::mouseMove(this->m_button,Mpush);
    QTest::mouseClick(this->m_button, Qt::LeftButton,0,Mpush,-1);}
    in this code, when I Rightclicked on button, the position of cursor places in Mpush and then lift click is simulated. it doesn't emit pushbutton(m_button) signal.
    Last edited by NIK-VAJ; 18th February 2016 at 16:48.

Similar Threads

  1. Seems that my emit doesn't emit the signal
    By roseicollis in forum Newbie
    Replies: 2
    Last Post: 19th January 2015, 16:05
  2. Replies: 2
    Last Post: 3rd May 2011, 20:22
  3. Replies: 3
    Last Post: 21st December 2010, 12:31
  4. how to know which button emit the signal?
    By coder1985 in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2008, 14:26
  5. emit a signal
    By Morea in forum Qt Programming
    Replies: 2
    Last Post: 27th February 2006, 11:14

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
  •  
Qt is a trademark of The Qt Company.