ContextMenu with QWidgetAction
-
Hello there,
I have a QMenu and actions are of my own class derived from QWidgetAction.
The issue is that, the default checkbox for the Menu items are no longer appearing.Notes:
- Inside my action class, I have a main-widget( say X ), inside which there is a HLayout that contains many other widgets.
- What I notice is that the checkbox from the Menu disappears, when I call setDefaultWidget(X).
Do I need to handle my own checkbox ( if there is a custom widget), or am I doing some blunder?
Many thanks in advance.... -
Hi,
Can you provide a minimal example that shows your issue ?
Which version of Qt are you using ?
On which platform ?