PDA

View Full Version : QSPLITTER designer how to add between...



xrep
3rd March 2012, 00:46
Hello guys,

I have following ui structure

myApp
centralWidget QWidget
> groupBox QGroupBox
treeView QTreeView
menuBar

I need make splitter and put into it groupBox and treeView, but in designer, when I chose these two widgets icon for making splitter is grey.
When I hardcode it, GUI is broken when I start app...

Is here some special condition for adding widgets into splitter or?
Thx...

ChrisW67
3rd March 2012, 00:58
The two items to be placed into a splitter cannot already be in a layout. Break the existing layout first.

xrep
3rd March 2012, 18:41
got it.. thaks a lot