Take a look here (Issue 29, Translucent Widgets in Qt), maybe it's what you're looking for.
Take a look here (Issue 29, Translucent Widgets in Qt), maybe it's what you're looking for.
@cydside Could you specify how translucet widgets can help me changing the color of all the gui widgets in my window to a darker or lighter color?
Thanks
Lodorot
Cant say about the translucent widgets... but you can try the following with style sheets -
Define your style sheet with some variable multiplied by brightness... something like -
Qt Code:
{ background-color: rgb(234* _BRIGHTNESS_ , 134* _BRIGHTNESS_ , 34* _BRIGHTNESS_ ); }To copy to clipboard, switch view to plain text mode
Then read the style sheet in your code, replace the _BRIGHTNESS_ with your desired value ( 0-1) and apply the style sheet.
Hope this will give you the desired effect
Bookmarks