PDA

View Full Version : Detect click on QTableWidget label



Darthspawn
11th March 2010, 16:42
The slot CellClick work only for cell, not for the orizontal or vertical lable. Is possible to detect the click on labes? thanks!

Sam

Darthspawn
12th March 2010, 10:50
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.