Important: Please read the Qt Code of Conduct -

Hiding MainWindow on OS X freezes the GUI

  • I've encountered a very strange problem on my MacBook Pro which is running OS X 10.6.8. When hiding a simple application with a MainWindow and a text field (by hitting CMD - H, or going to the top menu and pressing Hide MyApp) the GUI freezes. I have to minimize and maximize it (button on the MainWindow) to get the GUI to become responsive again.

    What I did to get this behavior was simply create a new project in QT (5.2.1) Widget Application with a MainWindow drag a QLineEdit inside the form then build it. I then deploy it using: /Users/maharajah/Qt/5.2.1/clang_64/bin/macdeployqt

    and sending it over to my MacBook Pro. When then hiding the window the GUI freezes.

    I am unable to get the same behavior on my iMac which is running 10.8.4, however my iMac has QT installed.

    Any ideas here?

  • Update:

    I can verify that clicks on for example a simple button are still being received. To test this is connected the click event up with a method that just qDebug() << "Button clicked....";

    However the interface is completely frozen.

    Also qApp->processEvents() has no effect.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What version of Xcode are you using ?

    Also, since 5.3 is out now, can you test if you still encounter this issue with it ?

  • Hi SGaist and thank you :)

    I'm using Xcode 5.1.1 but am compiling in QT Creator.

    I've tried QT 5.0.0, 5.2.1 and 5.3 all give the same problem

  • Lifetime Qt Champion

    Then it looks like it's a Snow Leopard specific bug. You should check the "bug report system": to see if something known.

Log in to reply