Hi;

Press action button, popup menu 1 or 2 second later show
how can fix this problem...

Qt Code:
  1. drawMenu = new QMenu(this);
  2. drawMenu->addAction(tr("Line Object"));
  3. drawMenu->addAction(tr("Rectangle"));
  4. drawMenu->addAction(tr("Rounded rectangle"));
  5. drawMenu->addAction(tr("Ellipse"));
  6. drawMenu->addAction(tr("Triangle"));
  7. drawMenu->addAction(tr("Diamond"));
  8.  
  9. actionDraw->setMenu(drawMenu);
To copy to clipboard, switch view to plain text mode