Qt Code:
p.setOpacity(0.1)M QStyleOptionButton option; initStyleOption(&option);To copy to clipboard, switch view to plain text mode
Thanks! This works. But, that is the unique way to set transparency to a widget? Each widget I have to set some transparency I need to subclass it and replace the paintEvent function?
That's for the window or for any widget? It didn't work for me. Thanks.





Reply With Quote


Bookmarks