Remenic
24th September 2009, 16:08
Hi,
I'm trying to create a popup widget that behaves exactly like a QMenu but without the items. By that, I mean the following properties:
Looks like a menu, but without the items. I guess I could use style()->drawPrimitive() to get the menu frame appearance.
Be the top-most widget.
When clicking outside the widget, the popup widget disappears, but does not "click through" (not pass the event to the widget under the cursor).
The biggest difference with a normal menu would be that my popup widget does not contain menu items, but other things.
Anyone know how to accomplish this?
I'm trying to create a popup widget that behaves exactly like a QMenu but without the items. By that, I mean the following properties:
Looks like a menu, but without the items. I guess I could use style()->drawPrimitive() to get the menu frame appearance.
Be the top-most widget.
When clicking outside the widget, the popup widget disappears, but does not "click through" (not pass the event to the widget under the cursor).
The biggest difference with a normal menu would be that my popup widget does not contain menu items, but other things.
Anyone know how to accomplish this?