请教子节点的单击事件:
定义了slot函数:
public slots:
void openChildItem(QTreeWidgetItem *,int col);
void docManage::openChildItem(QTreeWidgetItem *item,int col)
{
intro->setText(item->text(col));
}
事件:
QTreeWidget *tree=new QTreeWidget(this);
connect(tree,SIGNAL(itemClicked(QTreeWidgetItem*,int)),this,SLOT(openChildItem(QTreeWidgetItem*,int col)));
断点调试时,鼠标单击树节点,为何没有进入slot函数?