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. Transparent in StyleSheet doesn't work on Linux

Transparent in StyleSheet doesn't work on Linux

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

    I gave a Window some StyleSheet in order to have rounded corners using this block of code:
    *{
    background: transparent;
    }
    QWidget{
    background-color:qlineargradient(spread:pad, x1:1, y1:0.323, x2:1, y2:1, stop:0 rgba(80, 80, 80, 255), stop:1 rgba(41, 41, 41, 255));
    border: 2px solid rgb(153, 153, 153);
    border-radius: 20px;
    color:white;
    }
    the widget is appearing well but the window doesn't take the transparency I gave in order to get rid of pointy corners...
    On windows this code worked

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

      Hi
      Your windows manager might not support it.
      What linux distro and manager are you using ?

      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