Sep-12-2022, 02:49 PM
Good to go. Things I've found when passing a QAction to addAction: the QAction needs a parent most times to show in the menu. So, I passed the QMenu to QWidgetAction, then call
I've found QActions are indented by default. I guess to allow for check boxes or icons, and QWidgetAction is not indented. I'm all ears if anyone has a solution to that before I find the solution.
Hopefully this can help someone else.
setDefaultWidget()
on that widget. It shows, and using a QLabel allows for selective bolding, etc. This solution does what I want.I've found QActions are indented by default. I guess to allow for check boxes or icons, and QWidgetAction is not indented. I'm all ears if anyone has a solution to that before I find the solution.
Hopefully this can help someone else.