Rajesh.Rathod
31st August 2016, 10:52
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,
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,