hi,
I have two overlapping widgets. On top widget, I am drawing a line using qpainter. I want to make background of top widget transparent so that bottom widget is visible alongwith line from top widget. Plz suggest some way to achieve that.
hi,
I have two overlapping widgets. On top widget, I am drawing a line using qpainter. I want to make background of top widget transparent so that bottom widget is visible alongwith line from top widget. Plz suggest some way to achieve that.
set stylesheet of top widget, use background-color:rgba(0,0,0,0); in stylesheet.
As you are doing painting yourself, it's little doubtful.
if above doesn't work then see below link.
http://qt-project.org/doc/qt-4.8/qwi...uble-buffering
Last edited by Rajesh.Rathod; 14th August 2013 at 08:16.
Can you please explain why you need Top widget to just draw a single line?
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
Bookmarks