Hi all,
when i extend the standard context menu of qtextedit, i found all the actions is disable except the "paste" and "clear". why?
Qt Code:
  1. QMenu *editContextMenu = ui->textEdit->createStandardContextMenu();
  2. editContextMenu->addAction(clear);
  3. ui->textEdit->setContextMenuPolicy(Qt::CustomContextMenu);
  4. ...
  5. editContextMenu->exec(QCursor::pos());
To copy to clipboard, switch view to plain text mode