[Solved] QDockWidget::float-button:hover isn't working

  • 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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.