码迷,mamicode.com
首页 > 其他好文 > 详细

Qt_laytou布局

时间:2017-04-13 12:49:19      阅读:371      评论:0      收藏:0      [点我收藏+]

标签:blog   ddl   技术分享   ddt   cal   round   vbox   tab   set   

1,
技术分享

2,
技术分享

3,
QWidget *centralWidget;
QGridLayout *gridLayout_3;
QWidget *widget_main;
QGridLayout *gridLayout;
QTabWidget *widget_tab;
QWidget *tab_view_3d;
QGridLayout *gridLayout_2;
QVBoxLayout *verticalLayout;
QOpenGLWidget *widget_view;
QSlider *slider;
QWidget *tab2;



gridLayout_3 = new QGridLayout(centralWidget);
gridLayout_3->setSpacing(6);
gridLayout_3->setContentsMargins(11, 11, 11, 11);
gridLayout_3->setObjectName(QStringLiteral("gridLayout_3"));
widget_main = new QWidget(centralWidget);
widget_main->setObjectName(QStringLiteral("widget_main"));
widget_main->setStyleSheet(QStringLiteral("background-color: rgb(53, 54, 78);"));
gridLayout = new QGridLayout(widget_main);
gridLayout->setSpacing(6);
gridLayout->setContentsMargins(11, 11, 11, 11);
gridLayout->setObjectName(QStringLiteral("gridLayout"));
widget_tab = new QTabWidget(widget_main);
widget_tab->setObjectName(QStringLiteral("widget_tab"));
tab_view_3d = new QWidget();
tab_view_3d->setObjectName(QStringLiteral("tab_view_3d"));
gridLayout_2 = new QGridLayout(tab_view_3d);
gridLayout_2->setSpacing(6);

gridLayout_2->setContentsMargins(11, 11, 11, 11);
gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
verticalLayout = new QVBoxLayout();
verticalLayout->setSpacing(0);
verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
widget_view = new QOpenGLWidget(tab_view_3d);
widget_view->setObjectName(QStringLiteral("widget_view"));

verticalLayout->addWidget(widget_view);

slider = new QSlider(tab_view_3d);
slider->setObjectName(QStringLiteral("slider"));
slider->setOrientation(Qt::Horizontal);

verticalLayout->addWidget(slider);

verticalLayout->setStretch(0, 6);
verticalLayout->setStretch(1, 1);

gridLayout_2->addLayout(verticalLayout, 0, 0, 1, 1);

widget_tab->addTab(tab_view_3d, QString());
tab2 = new QWidget();
tab2->setObjectName(QStringLiteral("tab2"));
widget_tab->addTab(tab2, QString());

gridLayout->addWidget(widget_tab, 0, 0, 1, 1);
gridLayout_3->addWidget(widget_main, 0, 0, 1, 1);

Qt_laytou布局

标签:blog   ddl   技术分享   ddt   cal   round   vbox   tab   set   

原文地址:http://www.cnblogs.com/liuhan333/p/6703252.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!