Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Stylesheet hover and pressed effect problem in custom QAbstractButton

Stylesheet hover and pressed effect problem in custom QAbstractButton

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 2.9k 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.
  • S Offline
    S Offline
    SyedOsamaAhmed
    wrote on last edited by
    #1

    Hi,

    I am working on Qt for symbian. I have developed custom checkbox which is inherited from QAbstractButton. I want to give hover and pressed effect from stylesheet but its not working.

    below is my style

    @QString styleSheet = QString(
    "QAbstractButton { background:yellow }"
    "QAbstractButton:hover{"
    "background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(119, 213, 247, 255), stop:1 rgba(0, 120, 174, 255));"
    "}");@

    Please let me know what is wrong with my code?

    Thanks
    Osama

    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