How can I allow user resize on elements within the window using Qt designer?

前端 未结 2 396
故里飘歌
故里飘歌 2021-01-12 18:12

I want to allow a user using my application to be able to drag a boundary between two widgets in my window which will resize the two (i.e. you drag it down and the top one w

2条回答
  •  广开言路
    2021-01-12 18:34

    You're looking for the QDockWidget. It can do all that you described above and more. The user can dock the widget to different sides of the window, changing which widget is on the top or bottom. You can customize the minimum and maximum sizes, as well as default sizes.

提交回复
热议问题