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

QMessageBox::question cannot use keyboard shortcuts for Yes & No

    XMLWordPrintable

    Details

      Description

      QMessageBox::question : The keyboard shortcuts for Yes & No (Y & N) are underlined but not functional. Pressing N / Y / Alt-N / Alt-Y has no effect.

      The code is :

      QMessageBox::StandardButton answer = QMessageBox::question(this,QObject::tr("The routine was modified"), QObject::tr("Should the routine be saved before exiting?"), QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel);

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              mmutz Marc Mutz
              Reporter:
              harry_m Harry
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes