Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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: https://bugreports.qt.io


Log in to reply