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

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

XMLWordPrintable

      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);

        1. dialog.jpg
          9 kB
          user-b3af0
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mmutz Marc Mutz
            jirauser39726 user-b3af0 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes