本文整理汇总了C++中TabWidget::splitVertically方法的典型用法代码示例。如果您正苦于以下问题:C++ TabWidget::splitVertically方法的具体用法?C++ TabWidget::splitVertically怎么用?C++ TabWidget::splitVertically使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TabWidget
的用法示例。
在下文中一共展示了TabWidget::splitVertically方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: l
void
Gui::createDefaultLayout1()
{
///First tab widget must be created this way
TabWidget* mainPane = new TabWidget(this, _imp->_leftRightSplitter);
{
QMutexLocker l(&_imp->_panesMutex);
_imp->_panes.push_back(mainPane);
}
mainPane->setObjectName_mt_safe( QString::fromUtf8("pane1") );
mainPane->setAsAnchor(true);
_imp->_leftRightSplitter->addWidget(mainPane);
QList<int> sizes;
sizes << _imp->_toolBox->sizeHint().width() << width();
_imp->_leftRightSplitter->setSizes_mt_safe(sizes);
TabWidget* propertiesPane = mainPane->splitHorizontally(false);
TabWidget* workshopPane = mainPane->splitVertically(false);
Splitter* propertiesSplitter = dynamic_cast<Splitter*>( propertiesPane->parentWidget() );
assert(propertiesSplitter);
sizes.clear();
sizes << width() * 0.65 << width() * 0.35;
propertiesSplitter->setSizes_mt_safe(sizes);
TabWidget::moveTab(_imp->_nodeGraphArea, _imp->_nodeGraphArea, workshopPane);
TabWidget::moveTab(_imp->_curveEditor, _imp->_curveEditor, workshopPane);
TabWidget::moveTab(_imp->_dopeSheetEditor, _imp->_dopeSheetEditor, workshopPane);
TabWidget::moveTab(_imp->_propertiesBin, _imp->_propertiesBin, propertiesPane);
{
QMutexLocker l(&_imp->_viewerTabsMutex);
for (std::list<ViewerTab*>::iterator it2 = _imp->_viewerTabs.begin(); it2 != _imp->_viewerTabs.end(); ++it2) {
TabWidget::moveTab(*it2, *it2, mainPane);
}
}
{
QMutexLocker l(&_imp->_histogramsMutex);
for (std::list<Histogram*>::iterator it2 = _imp->_histograms.begin(); it2 != _imp->_histograms.end(); ++it2) {
TabWidget::moveTab(*it2, *it2, mainPane);
}
}
///Default to NodeGraph displayed
workshopPane->makeCurrentTab(0);
}