Results 1 to 4 of 4

Thread: How to draw opaque background with WA_TranslucentBackground active

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,328
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to draw opaque background with WA_TranslucentBackground active

    nothing I tried was able to change this attribute / transparency setting
    Yes, I think that is correct - the attribute can only be changed when the widget has been constructed but before it is shown. Probably has something to do with the underlying window system and the way it creates the native windows wrapped by QWidget / QWindow. It is during the transition from constructing the QWidget container to showing it on screen that the underlying native window gets instantiated and configured and there are properties of the native window that can't be changed once that happens.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    Maryu (5th September 2020)

Similar Threads

  1. Replies: 4
    Last Post: 12th August 2011, 12:20
  2. Replies: 2
    Last Post: 27th June 2011, 13:44
  3. Replies: 3
    Last Post: 8th October 2010, 19:01
  4. Replies: 1
    Last Post: 25th June 2010, 18:31
  5. opacity of QLabel(background opaque)
    By Stephano in forum Qt Tools
    Replies: 1
    Last Post: 9th May 2006, 12:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.