Hello every one i have a QTableView in which i am displaying some data, I wanted to know how i can resize the Cells in the QTableView when i resize the window to full screen. right now there is white space after four columns. I wanted to resize the column size so that there is no white space seen when i see it in the Full Screen also.
I tried a few things but it din't work as expected.
Qt Code:
  1. tableView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
  2.  
  3. tableView->setColumnWidth(0,100);
  4. tableView->setColumnWidth(1,100);
  5. tableView->setColumnWidth(2,100);
  6. tableView->setColumnWidth(3,100);
To copy to clipboard, switch view to plain text mode 
i looked on the forum but din't find much help on this issue.. What should i do to resize the columns when i view full screen.

Thank you