for (i=0; i<tableTable->columnCount(); i++) qDebug() << tableTable->horizontalHeader()->selectionModel()->isColumnSelected(i,QModelIndex());