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

Add support for additional Glyphs on Mac to match Key_Back and Key_Forward

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • None
    • OS X

    • macOS
    • Test test

      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.

      Test application :

      #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.

            richard Richard Moe Gustavsen
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes