Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] QDockWidget::float-button:hover isn't working
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 699 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pro Grammer
    wrote on last edited by Pro Grammer
    #1

    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?

    P 1 Reply Last reply
    0
    • P Pro Grammer

      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?

      P Offline
      P Offline
      Pro Grammer
      wrote on last edited by Pro Grammer
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved