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. Translucent background hide whole window
Qt 6.11 is out! See what's new in the release blog

Translucent background hide whole window

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

    Hi,

    At first, My english is not very well, I'm sorry.
    I have a very annoying problem. Everytime I set a tranclucent background to my widget (a class that inherits QWidget), it hides completly. What I want is a single QFrame that ist on the Widget. I'm on OSX and interesting is, that I can see the window as preview in mission control (in these little rectangles with Desktop1, Desktop2, etc.), but not on the real Desktop.
    When I set the window opacity to a value that is not null, I can sea a transparent window, but then the frame is transparent, too. What can I do to fix that problem?
    @ setWindowFlags(Qt::FramelessWindowHint);
    setAttribute(Qt::WA_TranslucentBackground, true);
    //setWindowOpacity(0.5);@

    Thank you

    -Edit
    by the way, the same code works on ubuntu.

    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