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

Add support for additional Glyphs on Mac - Key_Back and Key_Forward

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.5.3
    • Core: Event loop
    • None
    • macOS

      t4id: 262147

      Task tracker task 154172 improved the support for more native glyps on Mac, but there are still more to implement.

      For example the Key_Back and Key_Forward should be implemented as 0x21e0 and 0x21e2 to allow nice display of the keys. These back and forward keys are used for many types of applications, not just multimedia.

      #include <QtGui>

      class TMainWindow : public QMainWindow
      {
      public:
      TMainWindow(QWidget* parent = 0)
      :
      QMainWindow(parent, Qt::WindowStaysOnTopHint)

      { QMenuBar* menuBar = new QMenuBar(this); QMenu* menu = new QMenu("Menu", menuBar); QAction* action; action = new QAction("action 1", menu); action->setShortcut(QKeySequence(Qt::Key_Return)); menu->addAction(action); action = new QAction("action 1a", menu); action->setShortcut(QKeySequence(Qt::Key_Enter)); menu->addAction(action); action = new QAction("action 2", menu); menu->addAction(action); action->setShortcut(QKeySequence(Qt::Key_Back)); action = new QAction("action 3", menu); menu->addAction(action); action->setShortcut(QKeySequence(Qt::Key_Forward)); action = new QAction("action 4", menu); menu->addAction(action); action->setShortcut(QKeySequence(Qt::Key_Left)); action = new QAction("action 5", menu); menu->addAction(action); action->setShortcut(QKeySequence(Qt::Key_Right)); menuBar->addMenu(menu); setMenuBar(menuBar); resize(400,200); }

      };

      #include <QtGui>

      int main(int argc, char** argv)
      {
      QApplication app(argc, argv);
      TMainWindow* win = new TMainWindow;
      win->show();
      return app.exec();
      }

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

            hanssen Andreas Aardal Hanssen (closed Nokia identity) (Inactive)
            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes