hma
4th April 2007, 01:13
hi
I'm trying to do an Autodesk Sketcbook style pie-menu, where icons hover around a center point without a donut/circle shaped background and selection is marked by a line drawn from center of the pie to cursor position.
So far, I have everything working, except getting completely rid of the the background. Masking out everything except the icons solves most of the problem, but then I can't draw the line from center to cursor position.
I have tried setting widget's background color role to point to a transparent color, and setting Qt::WA_NoSystemBackground attribute , but no luck. From one source I understood that transparency does not work on all GUI styles, so I tried chancing that, but that didn't work.
Do you have any hints how to solve this? I'm using Qt 4.2 (could chance to 4.3 if that helps) on WindowsXP.
I'm trying to do an Autodesk Sketcbook style pie-menu, where icons hover around a center point without a donut/circle shaped background and selection is marked by a line drawn from center of the pie to cursor position.
So far, I have everything working, except getting completely rid of the the background. Masking out everything except the icons solves most of the problem, but then I can't draw the line from center to cursor position.
I have tried setting widget's background color role to point to a transparent color, and setting Qt::WA_NoSystemBackground attribute , but no luck. From one source I understood that transparency does not work on all GUI styles, so I tried chancing that, but that didn't work.
Do you have any hints how to solve this? I'm using Qt 4.2 (could chance to 4.3 if that helps) on WindowsXP.