QMenuItem: Make it a plain QObject
This isn't a visual item placed in the scene, Qt applying its recursive enabled/visible properties messes with the action's visibility in unpredictable and hard to debug ways. Instead, make it a plain QObject and let us handle those properties entirely on our own.
Please register or sign in to comment