Results 1 to 2 of 2

Thread: pyqt - tansparent background

  1. #1
    Join Date
    Sep 2010
    Posts
    12
    Qt products
    Platforms
    Unix/X11

    Default pyqt - tansparent background

    hi

    this is my first forum i hope is right section

    i'm with python 2.6 and pyqt 4.7

    qanto to make a window with transparent bacground: inside i want do see buttons and see the desktop over it
    i've searched in forum but given solutions don't works.

    i've tried those methods, in contructor and in paintEvent() override:

    Qt Code:
    1. self.setStyleSheet("background-color: rgba(255, 255, 255, 0%);")
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. self.setWindowOpacity(0.3)
    To copy to clipboard, switch view to plain text mode 
    ,
    Qt Code:
    1. self.setBackgroundRole(QtGui.QPalette.Base)
    2. self.setAttribute(Qt.Qt.WA_NoSystemBackground, True)
    To copy to clipboard, switch view to plain text mode 
    with also
    Qt Code:
    1. self.setAttribute(Qt.Qt.WA_TranslucentBackground)
    To copy to clipboard, switch view to plain text mode 

    the only result i've got is a window with noise inside. if window is small i get noise with color similar to background, if i enlarge it, only black

    thanks for your attention

  2. #2
    Join Date
    Sep 2010
    Posts
    12
    Qt products
    Platforms
    Unix/X11

    Default Re: pyqt - tansparent background

    no one got solutions?
    also c++ examples are right, but i didn't find anythong on the net that is working in my situations..
    and i don't think why i get noise and random pixels

Similar Threads

  1. Upgrading from PyQt 4.5 to PyQt 4.7
    By RogerCon in forum Installation and Deployment
    Replies: 0
    Last Post: 14th July 2010, 18:52
  2. Replies: 1
    Last Post: 25th June 2010, 18:31
  3. PyQt : Signal like this
    By prashant in forum Qt Programming
    Replies: 5
    Last Post: 2nd October 2009, 20:03
  4. PyQt
    By helvin in forum Newbie
    Replies: 1
    Last Post: 15th April 2009, 08:56
  5. PyQT Problems
    By Detrexer in forum Newbie
    Replies: 1
    Last Post: 27th May 2008, 20:08

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.