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

QMessageBox::setStandardButtons(QMessageBox::NoButton) cannot be closed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.2
    • None
    • Windows 10 Pro x64, 1703, Creators Update
       Qt 5.9.2 MSVC 2017 x64

      AsRock Z77 Extreme4
       Intel Core i5-3570
       16 GB DDR3

    Description

      The following code produces a message box with the red X at the top right corner disabled and cannot be closed.

      It should have no buttons but allow to be closed using the X at the top right corner.

      QMessageBox mb(QMessageBox::Warning, "Bug", "This is a bug!");
      mb.setStandardButtons(QMessageBox::NoButton);
      mb.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
            jubba Claudio Barutta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes