Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Window Modal MacOS

QML Window Modal MacOS

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    krobinson
    wrote on last edited by
    #1

    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()
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        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.

        K Offline
        K Offline
        krobinson
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The macOS Human Interface Guidelines.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved