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

OS X: Close or minimize button hint in modal dialog has no effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.1.0
    • None
    • cocoa OSX 10.6 10.8
    • macOS

    Description

      If window flags for close button hint and/or minimize button hint are set to modal dialog it still never enables these buttons.

      int main(int argc, char *argv[]) { 
      
      QApplication mainApp(argc, argv);
      
      MainWindow *mainWindow = new MainWindow; 
      mainWindow->show(); 
      QDialog *dialog = new QDialog(mainWindow); // QMainWindow class is parent 
      
      dialog->setWindowFlags(Qt::Dialog|Qt::WindowCloseButtonHint | Qt::WindowMinimizeButtonHint); 
      dialog->exec(); 
      
      return mainApp.exec(); 
      }
      
      

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes