I'm looking for a function that returns the width of a QTableWidget horizontal header: after a deep research in the official documentation, the only thing I've found is this, but the debugger send me this error at the line:
int section = table->horizontalHeader()->defaultSectionSize();
error: invalid use of incomplete type 'class QHeaderView'
Of course, I specified the ResizeMode in the constructor:
table->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);