ui->textEdit->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->textEdit,SIGNAL(customContextMenuRequested(QPoint)),this,SLOT(ShowTextEditMenu(QPoint)));
Qt组件(例如按钮、树形控件)上响应鼠标右键
猜你喜欢
转载自www.cnblogs.com/coolbear/p/11812156.html
今日推荐
周排行