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

Mac OSX exec() on a dialog with Qt::Tool windowflag is just a dialog.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.3.3
    • GUI: Window management
    • None
    • macOS
    • 2176a58c5312e2f994d5e345708a3b37e333d668

    Description

      On OSX 10.4:
      Calling exec() on a subclass of QDialog modified with setWindowFlags( Qt::Tool ) results in a normal dialog, as in the following example. Calling show() results in the tool windows as expected.

      #include <QtGui>
      class AboutDialog : public QDialog
      {
      Q_OBJECT

      public:
      AboutDialog(QWidget *parent = 0) : QDialog(parent)

      { setWindowFlags( Qt::Tool ); setWindowTitle("Tool dialog"); }

      };

      #include "main.moc"

      int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);
      AboutDialog *myDia = new AboutDialog();
      myDia->exec();
      // myDia->show();
      return app.exec();
      }

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes