Newer
Older
CasicBioRecNew / UserListForm.cpp
tan yue on 10 May 2022 745 bytes 20220510 用户列表页面框架
#include "UserListForm.h"
#include "ui_UserListForm.h"

UserListForm::UserListForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::UserListForm)
{
    ui->setupUi(this);

    // 加载css文件设置控件样式
    QFile file(QApplication::applicationDirPath() + "/qss/userList.css");
    if (file.open(QFile::ReadOnly))
    {
        QString qssStr = QLatin1String(file.readAll());
        this->setStyleSheet(qssStr);
        file.close();
    }

    // 设置弹簧的尺寸
    ui->vsContentTop->changeSize(0, 20);
    ui->vsTableTop->changeSize(0, 20);
    ui->hsCondRight->changeSize(660, 0);

    ui->hsPageRight->changeSize(100, 0);
    ui->vsContentBottom->changeSize(0, 40);
}

UserListForm::~UserListForm()
{
    delete ui;
}