PDA

View Full Version : QTableWidget and column selection



Arthur
29th March 2007, 15:33
Hello,

If I have a QTableWidget. If I entered rows, I can select columns. However, if there are no rows, I don't get 'currentColumnChanged' messages from the itemselectionmodel and if I ask for myTable->currentColumn() I will receive -1. I want to be able to select columns (to be able to edit column properties in my app). Does anyone have a suggestion on how to make columns selectable when no rows are in the table?

Best regards,
Arthur

zeki709
30th March 2007, 15:02
maybe you can use
void QHeaderView::setClickable ( bool clickable )