PDA

View Full Version : How to have a tansparent window



foji
9th October 2016, 01:49
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.
12149

foji
13th October 2016, 13:39
No body? Please :(

Camryn64
16th October 2016, 04:08
waiting for the answering post

foji
23rd October 2016, 23:18
Help me plis :'( I'm working in a game (BlackJack) and I want to make it with a transparent background.

adutzu89
24th October 2016, 08:59
This might help you. (http://doc.qt.io/qt-5/qml-color.html)

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.