Results 1 to 5 of 5

Thread: How to have a tansparent window

  1. #1
    Join Date
    Oct 2016
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Question How to have a tansparent window

    Hi there.
    I'm new in Qt (I have the 5.4 version). I have been watching the default examples projects and I found a "Quick Player" project. It has a transparent background and it looks very nice. Because I am new, I can not understand all the code and the lot of funtions. So I need help.

    How can I have a transparent backgroud (like the example) in my own project? I have been trying without success. I found examples, but they don't look like the Quick Player.


    I'll appreciate if some one can help me to make my own window looks like this.
    170.png

  2. #2
    Join Date
    Oct 2016
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to have a tansparent window

    No body? Please

  3. #3
    Join Date
    Sep 2016
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: How to have a tansparent window

    waiting for the answering post

  4. #4
    Join Date
    Oct 2016
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to have a tansparent window

    Help me plis :'( I'm working in a game (BlackJack) and I want to make it with a transparent background.

  5. #5
    Join Date
    Oct 2013
    Posts
    142
    Thanks
    36
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: How to have a tansparent window

    This might help you.

    From that page:
    By a hexadecimal triplet or quad in the form "#RRGGBB" and "#AARRGGBB" respectively. For example, the color red corresponds to a triplet of "#FF0000" and a slightly transparent blue to a quad of "#800000FF"
    is what you would be in interested.
    More precisely this: "#AARRGGBB"

    AA - alpha (opacity)
    RR - red
    GG - green
    BB - blue

    Hope it helped.

Similar Threads

  1. Replies: 2
    Last Post: 14th January 2013, 08:07
  2. Replies: 6
    Last Post: 9th November 2011, 05:31
  3. Replies: 2
    Last Post: 17th February 2011, 13:30
  4. pyqt - tansparent background
    By nkint in forum Qt Programming
    Replies: 1
    Last Post: 10th September 2010, 13:28
  5. Replies: 11
    Last Post: 4th June 2008, 08:22

Tags for this Thread

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.