I have a QTableWidget inside a QVBoxLayout. Its cells are comprised of QListWidgets.
How can I resize the rows of the table to take in account the number of QListWidgetItems.
The table header and cells expand and contract fine, but when I go to full screen, I'd like the row to expand to show the maximum number of list items for that row.
Also, if a row has fewer items, the row should be shorter.

Qt Code:
  1. listwidget->setResizeMode(QListView::Adjust); // has no effect
  2. tableWidget->resizeRowToContents(row); // has no effect
To copy to clipboard, switch view to plain text mode