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. Regarding QTBUG-2982 StyleSheet re-apply "qproperty-" and co. on pseudo state changes.
Qt 6.11 is out! See what's new in the release blog

Regarding QTBUG-2982 StyleSheet re-apply "qproperty-" and co. on pseudo state changes.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.4k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    kwinter91
    wrote on last edited by
    #1

    https://bugreports.qt.nokia.com/browse/QTBUG-2982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel#issue-tabs

    It would be very nice if this was fixed. However, I tried to do the hack fix the Qt Support suggested by doing style()->polish(this).

    However this doesn't seem to work.

    @
    QPushButton#btnInfo {
    qproperty-icon: url(:/Resources/icons/pause_hover.png);
    image: url(:/Resources/GUI/cards/buttons/pausebtn_hover.png);
    }

    QPushButton#btnInfo:hover {
    qproperty-icon: url(:/Resources/icons/info_hover.png);
    image: url(:/Resources/GUI/cards/buttons/pausebtn_down.png);
    }
    @

    I've tried it in a variety of ways:
    @
    style()->polish(this);
    ui.btnInfo2->style()->polish(this);
    ui.btnInfo->style()->polish(ui.btnInfo);
    @
    etc.

    Any ideas of what I could do?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Please discuss bugs in the bug tracker! It really helps all parties involved to keep related information in one place.

      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