Qt如何将QSplitter 在Qdilaog上显示出来
用哪个函数能把QSplitter 在Qdilaog上显示出来,请高手赐教!
[解决办法]
QSplitter *splitter = new QSplitter(this);
QListView *listview = new QListView;
QTreeView *treeview = new QTreeView;
QTextEdit *textedit = new QTextEdit;
splitter->addWidget(listview);
splitter->addWidget(treeview);
splitter->addWidget(textedit);
QVBoxLayout* layout = new QVBoxLayout(this);
layout->addWidget(splitter);
setLayout(layout);