Important: Please read the Qt Code of Conduct -

QT Window Modality disables actions in menu

  • I have a class that is a subclass of QWindow. I need to set WindowModality to WindowModal, so user cannot interact with other opened windows. But my window has a menubar with many menus that have some QActions inside and when I setWindowModality(Qt::WindowModal) it automatically disables every action in menu and I need them to be enabled.

    Can anybody provide some simple solution for this? Or it is not possible?

    Thank you very much.

  • Moderators

    Sounds like a bug on first sight. Try searching for it in Qt bugtracker:

Log in to reply