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

QMessageBox constructor doesn't set the specified buttons correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • 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 constructor keeps putting an "Ok" button even if the NoButton flag is specified.

      QMessageBox(QMessageBox::Warning, "Bug", "This is a bug!", QMessageBox::NoButton).exec();

      The above code produces a message box with an "Ok" button.
      As per documentation, it should have no buttons at all.

      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:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes