Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Transparent in StyleSheet doesn't work on Linux

    General and Desktop
    2
    2
    111
    Loading More Posts
    • 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
      Sampi last edited by

      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 Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post