摘要:
void MainWindow::on_action_Del_triggered(){ QList selectedItems = ui->listWidget->selectedItems(); if (selectedItems.count() > 0) { if... 阅读全文
摘要:
界面步骤打开你的界面文件并选中你要添加右键的控件,选择“CustomContextMenu”右键选择“转到槽...” ->customContextMenuRequested插入下面代码即可void MainWindow::on_listWidget_customContextMenuRequest... 阅读全文
摘要:
代码话不多直接上本人代码void MainWindow::on_pushButton_3_clicked(){ myprocess = new QProcess(this); myprocess->start("pwd"); myprocess->waitForFinished()... 阅读全文