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. Get transparency of qt theme

Get transparency of qt theme

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 199 Views
  • 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.
  • F Offline
    F Offline
    Felix_F
    wrote on last edited by Felix_F
    #1

    Hi, I'm trying to match the background of a QChartView to the surrounding window, and in doing this I have to get the color and transparency of it. I can easily get the color by doing
    QColor bg_translucent = QWidget::palette().color(QWidget::backgroundRole()),
    however this returns 1 for the alpha value, which is not true, it should be 0.8.
    Is there a better way to do this or a way to fix this?

    Edit: If you need more information, there is a post on Reddit here (don't feel like typing everything again).

    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