How to create two widgets(QList or QTab for example) attached to each other and draggable line between them so they can be resized together(one gets bigger and the other smaller and the other way around)?
Asked
Active
Viewed 291 times
1 Answers
0
http://doc.qt.io/qt-4.8/qsplitter.html
This can be done in the form editor with the layout options (shown below).
This will allow you to drag back and forth in between your widgets.

Mike
- 190
- 7
-
This option is always disabled for me. I am using the same items. – user5804127 Aug 31 '16 at 17:50
-
QSplitter *splitter = new QSplitter(parent); QListWidget *listwidget = new QListWidget; QTabWidget *tabwidget = new QTabWidget; splitter->addWidget(listwidget); splitter->addWidget(tabwidget); – Mike Aug 31 '16 at 18:56