Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38898

Mac - MessageDialog locks app on second open

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.3.0 RC1
    • Fix Version/s: 5.3.0
    • Component/s: Quick: Dialogs
    • Labels:
      None
    • Environment:
      MacOSX 10.8.5 & 10.9.2 & 10.7.5
    • Platform/s:
      macOS
    • Commits:
      d1320d78c6653320e33564c1fd64c14b2dd24cee

      Description

      I use the following code to create a "MessageDialog"

      MessageDialog {
          id: messageDialog
          icon: StandardIcon.Question
          title: "Action?"
          text: "Would you like to perform an action right now?"
          standardButtons: StandardButton.Yes | StandardButton.No
          onYes: {
              console.log("Performing Action")
      		this.close()
          }
          onNo: this.close()
      }
      

      I have a button which when clicked calls messageDialog.open(). The dialog opens fine the first time but if I open it a second time I get the following output message

      void QCocoaWindow::syncWindowState(Qt::WindowState) invalid window content view size, check your window geometry

      This only happens in 5.3 RC, I opened the 5.3 beta install and did a clean/qmake/build/run and the problem was gone. Switched back to 5.3 RC and did the clean/qmake/build/run and the problem was back.

      I tested this on a MacPro running 10.8.5 and a MacBookPro running 10.9.2. Both had the problem (I tested on iOS and Android and neither had the problem)

        Attachments

        For Gerrit Dashboard: QTBUG-38898
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            jp36 James Pettitt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes