更新
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "frmmain.h"
|
||||
#pragma execution_character_set("utf-8")
|
||||
#include "frmmain.h"
|
||||
#include "ui_frmmain.h"
|
||||
#include "qfile.h"
|
||||
#include "qtranslator.h"
|
||||
@@ -15,6 +16,12 @@ frmMain::~frmMain()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void frmMain::showEvent(QShowEvent *)
|
||||
{
|
||||
int width = ui->tabConfig->width() / ui->tabConfig->count() - 20;
|
||||
ui->tabConfig->setStyleSheet(QString("QTabBar::tab{min-width:%1px;}").arg(width));
|
||||
}
|
||||
|
||||
void frmMain::initForm()
|
||||
{
|
||||
this->initTableWidget();
|
||||
|
||||
Reference in New Issue
Block a user