Qt 6.11 is out! See what's new in the release
blog
[Solved] QDockWidget::float-button:hover isn't working
General and Desktop
2
Posts
1
Posters
764
Views
1
Watching
-
I'm trying to style the 'undock button' for my QDockWidget while hovering over it. QDockWidget::float-button {} works. But when I try to style it upon hovering with QDockWidget::float-button:hover {}, it still stays with the generic style. for :pressed it's the same. What am I doing wrong?
-
I'm trying to style the 'undock button' for my QDockWidget while hovering over it. QDockWidget::float-button {} works. But when I try to style it upon hovering with QDockWidget::float-button:hover {}, it still stays with the generic style. for :pressed it's the same. What am I doing wrong?
Ok, I found the problem. I should have styled the borders of QDockWidget::float-button {} first and now it works. Don't know why it's this way though.