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. QPushButton icon hover effect in Qt v4.8

QPushButton icon hover effect in Qt v4.8

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 510 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.
  • BramhaB Offline
    BramhaB Offline
    Bramha
    wrote on last edited by
    #1

    Hello, I am trying to make hover effect on QPushButton in my project with icon/image. but the image is aligning at center in button, I have tried so much but I failed. please help me to solve this.
    The style sheet I used is below.

    #pushButton {
    font: 75 8pt "Tahoma";
    qproperty-icon: none;
    image: url(:/images/icon_cancel_none.svg);
    /*qproperty-icon: url(":/images/icon_cancel_none.svg");
    qproperty-iconSize: 18px 18px; */
    }

    #pushButton:hover {
    font: 75 8pt "Tahoma";
    image: url(:/images/icon_cancel_over.svg);
    /*qproperty-icon: url(":/ images/icon_cancel_over.svg");
    qproperty-iconSize: 18px 18px; */
    }

    pButton.JPG

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you explain in more details what exactly your are expecting from that effect ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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