Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 177633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:05:20+00:00 2026-05-11T14:05:20+00:00

I try to make the background of my window transparent. But under widgets which

  • 0

I try to make the background of my window transparent. But under widgets which are on it i see parts of my desktop-image. Now i have this in constructor:

    self.setFocusPolicy(Qt.StrongFocus)     self.setAttribute(Qt.WA_QuitOnClose,True)      self.setBackgroundRole(QtGui.QPalette.Base)     self.setAttribute(Qt.WA_NoSystemBackground) 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:05:20+00:00Added an answer on May 11, 2026 at 2:05 pm

    Further to gs’s answer, this faq explains why (before Qt 4.5) you cannot achieve this:

    FAQ Link:

    There is no direct support for partial transparency, where the window is transparent and the widgets on it are not in Qt.

    Remember, PyQt’s most recent version was created against Qt 4.4, and so does not support the semi-transparent window you desire. gs’s other answer, about setAutoFillBackground(True) would work if you were setting the background colour of your main window to anything other than transparent.

    Also, see the documentation for Qt.WA_NoSystemBackground, it says you can’t depend on the transparent effect that you have so far had:

    Qt::WA_NoSystemBackground

    Indicates that the widget has no background, i.e. when the widget receives paint events, the background is not automatically repainted. Note: Unlike WA_OpaquePaintEvent, newly exposed areas are never filled with the background (e.g after showing a window for the first time the user can see ‘through’ it until the application processes the paint events). This is set/cleared by the widget’s author.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to make an animation with an image in my view but it
I try to make an Android application which communicates with a non-standard ISO15693 (NFC-V)
I have a dialog that resizes. It also has a custom background which I
I'm working with cocos2d and try to make an effect that the background is
I try to make div class and style together, but somehow style is not
I'm trying to set a background image to fullscreen, and on window resize the
I have a webpage with a tiled background body image. It needs to be
I try to make my ListBox connected to ObservaleCollection be more efficient so for
I try to make an ActiveX by C# with COM-visible. It is a Windows
I try to make an imageview clickable. Actually it is clickable, so that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.