Maybe you accidentally activated the "checkable" property of the button?
Does this also happen if you do not show the file dialog in the method connected to clicked()?
Cheers,
_
Maybe you accidentally activated the "checkable" property of the button?
Does this also happen if you do not show the file dialog in the method connected to clicked()?
Cheers,
_
Hey, I checked via QtDesigner and the checkable method is not activated.
What currently happens when I launch the Interface also via QtDesigner is that one Button is already highlighted on Application Start, as if the mouse already hovers over it.
It stays highlighted as long until another button in the Interface is pressed. Maybe it is just a property not checked correctly in QtDesigner itself?
I think that is just the "default" button, i.e. the button that would get activated if Return/Enter is hit.
Ok, so the checkable property is not set.
So what happens when you comment out the line that shows the file dialog?
Does the button still get stuck?
Cheers,
_
Ok so I think the "selection" design is quite obvious in the stylesheet I'm asked to write the appliaction in.
And the problem is that the button is staying "selected" until I press another button, also when I'm not hovering with the mouse over it.
So from what I can see the issue is not the"pressed" but the hover/selected state.
I would expect the selected state to not last when I am not hovering over the button, clicking on the background etc.
But it gets only changed when I selected another button ui element. Is there anyway to change that behaviour?
You could check if the "selection" follows the focus, e.g. by calling setFocus() on the window/parent before you show the dialog.
Cheers,
_
Bookmarks