I want to resize a dialog to the width of a QTableView inside of it....
Unsolved
General and Desktop
-
I tried this:
QSize sizeOfTableView = tableView->size(); QSize sizeOfWindow = this->size(); resize(sizeOfTableView.width(), sizeOfWindow.height());
it does not work as expected!
-
I tried this:
QSize sizeOfTableView = tableView->size(); QSize sizeOfWindow = this->size(); resize(sizeOfTableView.width(), sizeOfWindow.height());
it does not work as expected!
-
@jdent
Show us a screenshot of what you get.As I said earlier, the sizes of the inner widgets are valid once the dialog is shown.
-
@mpergand ok, how can I capture the moment a dialog is shown??
In MFC there was a OnInitDialog() method.... nothing similar here? There must be a signal to trap...
-
@mpergand ok, how can I capture the moment a dialog is shown??
In MFC there was a OnInitDialog() method.... nothing similar here? There must be a signal to trap...