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. QSlider not showing over background image using stylesheet (RESOLVED)
Qt 6.11 is out! See what's new in the release blog

QSlider not showing over background image using stylesheet (RESOLVED)

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

    QSlider has a PNG image for handle. Shows correctly. Don't need a groove image as
    QFrame, for entire workspace, has the artwork. I see a black rectangle with the handle
    over top of the background.

    Other children of the frame (groupboxes, labels, etc) are showing correctly.

    @#frame {
    background-image: url(:/qml/file_1.png);
    }@

    QSlider::add-page {
    color: rgba(0,0,0,0);
    }
    QSlider::sub-page {
    color: rgba(0,0,0,0);
    }
    QSlider::handle {
    image: url(:/qml/file_5.png);
    }
    QSlider::groove {
    background-color: rgba(0, 0, 0, 0);
    }

    What am I missing?

    EDIT: I forgot about centralWidget - Resolved

    1 Reply Last reply
    1
    • M Offline
      M Offline
      msue
      wrote on last edited by
      #2

      rgba(0, 0, 0, 0) should be written as rgba(0, 0, 0, 0%). However, it means full transparency which is probably not what you want.

      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