[Solved] Transparent window setting
-
Hi to all
I have set in the application RC Hobby Stream (on https://projects.forum.nokia.com/rchobbystream) a set of window parameter to the viewer (in the main.cpp source) to hide all the window controls, borders, etc.
@ // Modifications to remove window attributes
viewer.setAttribute(Qt::WA_NoSystemBackground);
viewer.setWindowFlags(Qt::FramelessWindowHint);
viewer.setAttribute(Qt::WA_OpaquePaintEvent);
@The graphic image of show on the screen has the rounded corners with some transparency elements (using a .png file).
Does anyone know what attribute I should set to have the window also transparent ?
Thank you.
-
discussed "here":http://developer.qt.nokia.com/forums/viewthread/1107
-
Thank you very much!!!
As a matter of fact (anyway I search on the forum before post a problem) I had already tested the sample in the discussion you mentioned above, with no good results.
My misunderstanding was in
@ viewer.setStyleSheet("background:transparent;");@
because I was "sure" :( that it was a definition of the user source, not a part of the method to have the window transparent ...
Thanks again.
-
[quote author="Alicemirror" date="1300270252"]Thank you very much!!!
As a matter of fact (anyway I search on the forum before post a problem) I had already tested the sample in the discussion you mentioned above, with no good results.
[/quote]you are welcome :) ... been on forum sometime now so just remembered this was already discussed earlier. sometimes it happens, you don't get best results with search and i believe it is being looked into