For QTableWidget::horizontalHeader().setStretchLastSec tion(true);
error: C2228: left of '.setStretchLastSection' must have class/struct/union
type is 'QHeaderView *'
did you intend to use '->' instead?
error: C2228: left of '.setStretchLastSection' must have class/struct/union
type is 'QHeaderView *'
did you intend to use '->' instead?
To copy to clipboard, switch view to plain text mode
And if I try this - tableWidget->horizontalHeader()->setResizeMode(QHeaderView::Stretch);
error: C2027: use of undefined type 'QHeaderView'
error: C2065: 'Stretch' : undeclared identifier
error: C2027: use of undefined type 'QHeaderView'
error: C2065: 'Stretch' : undeclared identifier
To copy to clipboard, switch view to plain text mode
NB: It's not even giving suggestions after horizontalHeader(). I'm using Qt 5.0.2
Bookmarks