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. Child widget with transparent background for a widget with Qt::WA_PaintOnScreen set true.
Forum Updated to NodeBB v4.3 + New Features

Child widget with transparent background for a widget with Qt::WA_PaintOnScreen set true.

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.3k 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.
  • V Offline
    V Offline
    Varun_pts
    wrote on last edited by
    #1

    I want to create a transparent treewidget on top of a widget which has Qt::WA_PaintOnScreen set to true since it is drawn by external rendering engine. (Overriding its paintevent)

    As per the documentation, widgets which have Qt::WA_PaintOnScreen attribute set to true, cannot be semi-transparent or shine through semi-transparent overlapping widgets.

    Is there any other work around.

    I created a separate window(widget that does not have a parent) and set its windowflag to Qt::SubWindow, Qt::WindowStaysOnTopHint, made it transparent and overlapped it on the mainwindow to make a tranparent tree. But this calls for additional handling since this is now a separate window. I have to mange position of this window, focus, etc myself. I was wondering if there was any simple way to accomplish the same thing.

    Please help.

    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