connect(m_ListView, SIGNAL(clicked(const QModelIndex &index)),
this, SOLT(setTreeModel(const QModelIndex &index)));
connect(m_ListView, SIGNAL(doubleClicked(const QModelIndex &index)),
this, SLOT(setTreeModel(const QModelIndex &index)));
请改成:
connect(m_ListView, SIGNAL(clicked(const QModelIndex &)),
this, SOLT(setTreeModel(const QModelIndex &)));
connect(m_ListView, SIGNAL(doubleClicked(const QModelIndex &)),
this, SLOT(setTreeModel(const QModelIndex &)));
如果你没有自己写的signal或者slots就不需要加Q_OBJECT