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. Transparency Qt5.1.1
Forum Updated to NodeBB v4.3 + New Features

Transparency Qt5.1.1

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

    Hello,

    I'm unable to create a Qt application with a transparent background window. I'm using Qt5.1.1 (qt-everywhere-opensource-src-5.1.1.tar.xz) running on Ubuntu, using Metacity as the window manager with the '--composite' option set.

    I've written a sample application, this works as expected when built against Qt4 libraries, however when I build this against Qt5 libraries and run it in the same environment I get a black background instead of transparency.

    Can anyone provide a very simple application that renders a QLabel with a transparent background such that windows beneath can be seen?

    I've searched the forums, but had no success, my current attempts include using setStyleSheet to set a transparent background, setting the Qt::WA_NoSystemBackground, Qt::WA_TranslucentBackground attributes and using the Qt::FramelessWindowHint window flags.

    Thanks,

    Andrew Murray

    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