You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#include "zq_vtab_page.hpp"
using namespace iflytop; using namespace std;
ZQVTabPage::ZQVTabPage(QTabWidget *fathertab, const QString &zh_name) : QWidget(fathertab) { //
QVBoxLayout *verticalLayout = new QVBoxLayout(this); // 设置布局
this->setLayout(verticalLayout); m_layout = verticalLayout;
fathertab->setUsesScrollButtons(true); fathertab->insertTab(fathertab->count(), this, zh_name); } void ZQVTabPage::addBox(QGroupBox *box) { m_layout->addWidget(box); }
void ZQVTabPage::addSpacer() { m_verticalSpacer = new QSpacerItem(20, 1, QSizePolicy::Expanding, QSizePolicy::Expanding); m_layout->addItem(m_verticalSpacer); }
|