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

After hiding an application, when it is reshown sheets do not show content and are not connted to their parenting windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.6.3, 4.7.0, 4.7.4, 4.8.0
    • None
    • OS X 10.6.3 - 10.7.1, Qt 4.6.3 - 4.8.0 Carbon, Intel Mac Book Pro

      If you run the below test case, hide the application, then show it again by clicking it's icon in the dock, you'll notice the sheet no longer shows it's content and is a separate window. Furthermore, the sheet no longer blocks access to the parent. You can now interact with the parent window.

      #include <QtGui>
      
      class Dialog : public QDialog
      {
      public:
        Dialog(QWidget *parent=0);
      };
      
      Dialog::Dialog(QWidget* parent) : QDialog(parent)
      {
        setWindowModality(Qt::WindowModal);
      #ifdef Q_OS_MAC
        setWindowFlags(Qt::Sheet);
      #endif
      
         QGridLayout* grid = new QGridLayout(this);
         grid->addWidget(new QLabel("Content will disappear and sheet will disconnect from\nwindow when re shown after hiding the application"), 0,0);
      }
      
      int main(int argc, char **argv)
      {
        QApplication app(argc, argv);
      
        QWidget w;
        Dialog* d = new Dialog(&w);
        d->show();
        w.show();
      
        return app.exec();
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            wstokes Will Stokes
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes