1
我需要在doubleClick上用左键鼠标运行插槽,而不是两者。Qt双击检查左键鼠标
// this->myComponent is a QTableView
connect(this -> myComponent, SIGNAL (doubleClicked (const QModelIndex &)), this,
SLOT (performSomeAction(const QModelIndex &)));
有了这个事件,在这两种情况下双击工作,但只有点击左键时才需要。 我该怎么做?
this -> myComponent => QTableView
不,它不适合我的工作。我从QTableView派生我的新类继承,并实现那里mouseDoubleClickEvent,但此方法不调用。 – 2010-04-18 18:38:11