简体   繁体   English

cellClicked 和 cellPressed 不适用于 QTableWidget

[英]cellClicked and cellPressed not working for QTableWidget

Whats is wrong with following call.以下电话有什么问题。 IDBTable is QTableWidget IDBTable 是 QTableWidget

connect(m_GUI->m_UI->IDBTable,SIGNAL(cellPressed(2, 0)), this, SLOT(slotGoToWelcomeScreen()));

Your signal definition is wrong.你的信号定义是错误的。 There is no such signal cellPressed(2, 0) but only cellPressed(int, int) .没有这样的信号cellPressed(2, 0)而只有cellPressed(int, int) Please read the documentation about signals and slots and prefer the new signal slot syntax to catch such errors during compile time.请阅读有关信号和槽的文档,并更喜欢新的信号槽语法以在编译时捕获此类错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM