The slot CellClick work only for cell, not for the orizontal or vertical lable. Is possible to detect the click on labes? thanks!
Sam
The slot CellClick work only for cell, not for the orizontal or vertical lable. Is possible to detect the click on labes? thanks!
Sam
Ok, I didn't explain well!
I want to detect mouse click on the header (horizontal) of the table, if someone is searching this i found the way:
connect(ui->Table->horizontalHeader(), SIGNAL(sectionClicked(int)), SLOT(Table_HeaderClick(int)));
and implement the method Table_HeaderClick() as a slot.
Is not possible set this function direclty with the designer of QTCreator.
Bookmarks