信号和槽连接pClassSearch->pTreeEvent是QTreeWidget *类型
connect(pClassSearch->pTreeEvent, SIGNAL(itemChanged(QTreeWidgetItem*, int)), this, SLOT(treeItemChanged(QTreeWidgetItem*, int)));
build的时候怎么会有error C2664: 'bool QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)' : cannot convert parameter 1 from 'QTreeWidget *' to 'const QObject *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
我的其他的槽连接 pQuit是QPushButton *类型 connect(pQuit, SIGNAL(clicked()), this, SLOT(QuitWindow()));
没有问题