Qt 编写qtreewidget右键菜单时发生程序异常
void MainWindow::on_treeWidget_customContextMenuRequested(const QPoint &pos)
{
QTreeWidgetItem *item = ui->treeWidget->itemAt(pos);
if(item == nullptr) return;
qDebug() <<item->columnCount()<< item->text(0.
原创
2022-04-08 00:10:47 ·
348 阅读 ·
0 评论