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
Forum Update on Tuesday, May 27th 2025

Stylesheet hover and pressed effect problem in custom QAbstractButton

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 2.8k 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 14 Nov 2011, 12:23 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

    1/1

    14 Nov 2011, 12:23

    • Login

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