Results 1 to 4 of 4

Thread: QPushButton mouse release event issue

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 8 Times in 8 Posts

    Default QPushButton mouse release event issue

    Dear All,
    I have a QPushButton for which I have set stylesheet to show different color for press and release state.

    The problem is, when this button is pressed it shows file save dialog and after dialog execution is completed button still shows its pressed state until I refresh it by clicking somewhere else on application.

    Note that because of some specific requirement i have to show file save dialog on button press event, so I am using its pressed signal here.

    I am using function QFileDialog::getSaveFileName for this operation.

    It seems to me that button is not getting mouse release event.

    Any idea , please advise.

    Thanks,
    Last edited by Rajesh.Rathod; 31st August 2016 at 09:57.

Similar Threads

  1. Replies: 2
    Last Post: 26th February 2015, 08:53
  2. Getting mouse release event system-wide
    By rittchat in forum Newbie
    Replies: 4
    Last Post: 9th February 2012, 08:08
  3. Replies: 14
    Last Post: 17th January 2012, 09:01
  4. Replies: 3
    Last Post: 7th January 2012, 08:38
  5. QPushButton mouse pointer event
    By ahmdsd_ostora in forum Qt Programming
    Replies: 2
    Last Post: 16th August 2010, 13:44

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.