Results 1 to 2 of 2

Thread: QPushButton gets stuck

  1. #1
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QPushButton gets stuck

    I have a slot connected to a QPushButton's clicked() signal.

    When I hold the button down, I see repeated calls to the slot (which is what I want).

    If a dialog comes up during that time (using Dialog->exec()), the button pops up, but I still get the repeated calls to the QPushButton when the dialog is closed and I'm not clicking it anymore.

    Some workarounds I've tried:

    Using the pressed() signal instead. The slot keeps getting called after the dialog closes.

    Doing a check for isDown() in the slot. For some reason this is still true.

    Any ideas?

  2. #2
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QPushButton gets stuck

    Oh, it might be this bug ...

    http://bugreports.qt.nokia.com/browse/QTBUG-7901

    Not sure.

Similar Threads

  1. Timers seemingly getting stuck.
    By MarkSimon in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2010, 12:30
  2. Qt/Mac - Stuck with user focus
    By sergant in forum Qt Programming
    Replies: 1
    Last Post: 24th January 2009, 08:56
  3. Help plz! I’m stuck with these delegates
    By codeaddict in forum Qt Programming
    Replies: 7
    Last Post: 19th August 2008, 21:33
  4. QPaint Class and QGraphicsScene ....I am stuck !!
    By salmanmanekia in forum Qt Programming
    Replies: 7
    Last Post: 30th May 2008, 15:04
  5. comboboxes get stuck
    By illuzioner in forum Qt Programming
    Replies: 2
    Last Post: 30th March 2006, 01:03

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.