ui->textEdit->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->textEdit,SIGNAL(customContextMenuRequested(QPoint)),this,SLOT(ShowTextEditMenu(QPoint)));
Qt components (e.g. buttons, tree control) in response to the right mouse
Guess you like
Origin www.cnblogs.com/coolbear/p/11812156.html
Recommended
Ranking