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. How to get transparent rectangle in widget?
Qt 6.11 is out! See what's new in the release blog

How to get transparent rectangle in widget?

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

    Hi,

    I have a QWidget ( widget 1 in the picture ). It has green background. I have next QWidget ( widget 2 ), which is child of widget 1 and it has blue background. I would like to have on wigdet 2 transparent rectangle and I would like see in this rectangle widget 1.

    Picture:

    exx.png

    raven-worxR 1 Reply Last reply
    0
    • T TomNow99

      Hi,

      I have a QWidget ( widget 1 in the picture ). It has green background. I have next QWidget ( widget 2 ), which is child of widget 1 and it has blue background. I would like to have on wigdet 2 transparent rectangle and I would like see in this rectangle widget 1.

      Picture:

      exx.png

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @TomNow99
      https://doc.qt.io/archives/qq/qq16-background.html
      rather old, but still valid i think

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved