Hello all,

I'd like when the user resizes the main window of my app, the widgets inside the main window to be resized automatically too.

Ive set the sizePolicy of my main window to preferred.
all the widgets inside the main window are placed inside a tab widget which is under the centralWidget.

this is what ive tried so far:

Qt Code:
  1. /* i suppose that when the user resizes the window, the height changes so i tried to check it with the following : */
  2. if(!minimumSize().height == 800) //where 800 is the default height for the window
  3. {
  4. tabwidget->updateGeometry();
  5. // centralWidget->updateGeometry();
  6. // setupUi(this);
  7. }
To copy to clipboard, switch view to plain text mode 

i hope you get the meaning,
any help is appreciated