Unsolved MainWindow: how to resize automatically?
-
Hi!
On Main Window I have a QFrame with a horizontal layout.
QFrame fills with dynamically created widgets.
How to make MainWindow resized automatically? -
@sitesv said in MainWindow: how to resize automatically?:
How to make MainWindow resized automatically?
Do you mean you want your main window to resize if you add more widgets?
-
@jsulm Yes. Main Window has a default size. While a startup, some widgets adding to QFrame...
When I work with Embarcadero RAD Studio, TForm has an AutoSize parameter... -
Call resize(sizeHint())
-
@Christian-Ehrlicher Thanks!
One more q.
This trick is suitable to resize main window to qtablewidget size? Or I should calculate width and height manually?