Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML Window Modal MacOS



  • I have recently started building one of my Qt applications for MacOS. I use some QML Windows in various places. On Mac, when the dialog is modal it uses the little overlay window at the top instead of a new window. Is it possible to get the window to popup like the non-modal while still being model? This is the code I am using to launch the window.

    var component = Qt.createComponent("Window.qml")
    var window = component.createObject(root)
    window.modality = Qt.WindowModal
    window.flags = Qt.Dialog
    window.show()
    

  • Lifetime Qt Champion

    Hi,

    I don't have a proposition for that but you should take into consideration that you are trying to go against the platform GUI guide lines which is not the best thing to do for your users.



  • @SGaist said in QML Window Modal MacOS:

    Hi,

    I don't have a proposition for that but you should take into consideration that you are trying to go against the platform GUI guide lines which is not the best thing to do for your users.

    Thanks for your reply. What guidelines are you referring to? Sorry I am new to MacOS development.


  • Lifetime Qt Champion


Log in to reply