Re: How to scroll MainWindow
Quote:
But Idon't know how to do it.
Drag a scroll area to the main window and drop it there. Apply a layout on the centralWidget of the window so that the scroll area "snaps" into place. Then drag and drop contents you want to have in the window into the scroll area, apply a layout and set "widgetResizable" property of the scroll area to true.
Re: How to scroll MainWindow
Thanks!! It works, but... I must add layouts to scroll area. Is it Any way to deploy my buttons within layouts, to avoid moving them when window size is changing?
Quote:
Originally Posted by
wysota
Drag a scroll area to the main window and drop it there. Apply a layout on the centralWidget of the window so that the scroll area "snaps" into place. Then drag and drop contents you want to have in the window into the scroll area, apply a layout and set "widgetResizable" property of the scroll area to true.
Re: How to scroll MainWindow
There is no difference in using layouts with and without QScrollArea. You place items in the scroll area and then apply the layout to the scroll area.