QAction* position in QMenu



  • How do you get the QPoint dowry QAction in the right QMenu?

    QMenu regionMenu;
    ...
    menuAction = new QAction("a",this);             connect(menuAction,SIGNAL(triggered()),this,SLOT(onMenuClick()));
    regionMenu->addAction(menuAction);
    

    How do you get menuAction?



  • http://doc.qt.nokia.com/latest/qmenu.html#actionGeometry ♪ Open documentation more often.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2