qtzcute
16th August 2009, 05:21
Hi all,
I am using QTableView for generating a table for my data. Problem is that i want the table to capture all the horizental space available in the TableView but i can't make it yet.
I used following LOC but invain...
tableView_processInfo->horizontalHeader() -> resizeSections(QHeaderView::Stretch);
For just testing i wrote:
tableView_processInfo->setColumnWidth(2,500)
but it did not result into anything either.
where tableView_processInfo is my table's name. Also, have a look of the attached picture to see what's wrong.
Thanks a lot
I am using QTableView for generating a table for my data. Problem is that i want the table to capture all the horizental space available in the TableView but i can't make it yet.
I used following LOC but invain...
tableView_processInfo->horizontalHeader() -> resizeSections(QHeaderView::Stretch);
For just testing i wrote:
tableView_processInfo->setColumnWidth(2,500)
but it did not result into anything either.
where tableView_processInfo is my table's name. Also, have a look of the attached picture to see what's wrong.
Thanks a lot