Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Modal QDialog in Qt5 & MacOS: not that modal!

Modal QDialog in Qt5 & MacOS: not that modal!

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 2.2k 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.
  • F Offline
    F Offline
    floatingWoods
    wrote on last edited by
    #1

    Hello,

    I went from Qt 4.7.4 to Qt5.1.0. I made several adjustments, and could finally compile. There is however a strange thing happening with modal QDialogs, and only on MacOS (Windows and Linux work fine):

    It seems as the modal dialog is not completely modal: one can select edit boxes, and even close the parent dialog by clicking its close button in the upper left corner. The consequence of this are regular crashes.

    On top of that, customization flags don't seem to work anymore, e.g:
    Qt::Tool|Qt::CustomizeWindowHint|Qt::WindowTitleHint will still offer functional maximize and close buttons in the dialog bar.

    Is it possible that this is a Qt5 bug, or am I doing something wrong?

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

      Hi,

      It might well be a bug, you could check on the mailing list (you'll find more developers/maintainers there, this forum is more user oriented) and Qt's "bugreports":https://bugreports.qt-project.org/issues/ system.

      If you don't find anything, you can submit a bug report with a minimal compilable example that shows the behavior

      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
      0
      • F Offline
        F Offline
        floatingWoods
        wrote on last edited by
        #3

        Thanks for your reply.
        Actually I noticed that this happens only if I have the Qt::Tool flag set for the dialog. Removing that flag resolves the problem.

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

          You should check anyway, that sounds kind of a regression form 4 to 5

          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
          0
          • F Offline
            F Offline
            floatingWoods
            wrote on last edited by
            #5

            Yes, I posted a bug report

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

              Can you post the link to the report here ? So other users can go see it if they have the same problem as you

              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
              0
              • F Offline
                F Offline
                floatingWoods
                wrote on last edited by
                #7

                Right ;)
                "Here":https://bugreports.qt-project.org/browse/QTBUG-32433 it is!

                1 Reply Last reply
                0

                • Login

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