如何使两个小部件相互连接并在Qt Creator中相互调整大小

时间:2016-08-31 16:44:05

标签: python qt user-interface qt-creator

如何创建彼此相连的两个小部件(例如QList或QTab)以及它们之间的可拖动线,这样它们可以一起调整大小(一个变大,另一个变小,反过来)?

1 个答案:

答案 0 :(得分:0)

http://doc.qt.io/qt-4.8/qsplitter.html This can be done in the form editor with the layout options (shown below). Setup the layout with splitters in the form editor

This will allow you to drag back and forth in between your widgets.