ui界面有太多逻辑,ui会卡

This commit is contained in:
hm
2020-10-13 19:15:03 +08:00
parent 56f025af20
commit b0558735ef
3 changed files with 10 additions and 6 deletions
+4 -1
View File
@@ -56,7 +56,7 @@ PowerSystem::PowerSystem(QWidget *parent) :
setColor(ui->checkBox_20,state::success);
setColor(ui->checkBox_21,state::success);
/*
ScopeRPM = new Scope(ui->frame_scope);
ScopeTemp = new Scope(ui->frame_scope);
ScopeAlt = new Scope(ui->frame_scope);
@@ -75,6 +75,7 @@ PowerSystem::PowerSystem(QWidget *parent) :
ScopeAlt->chartView->addSeries(tr("海拔"));
ScopeMa->chartView->addSeries(tr("马赫"));
*/
}
@@ -86,10 +87,12 @@ PowerSystem::~PowerSystem()
void PowerSystem::resizeEvent(QResizeEvent *event)
{
/*
ScopeRPM->setGeometry(0,0,ui->frame_scope->width(),ui->frame_scope->height()/4);
ScopeTemp->setGeometry(0,ui->frame_scope->height()/4,ui->frame_scope->width(),ui->frame_scope->height()/4);
ScopeAlt->setGeometry(0,ui->frame_scope->height()/2,ui->frame_scope->width(),ui->frame_scope->height()/4);
ScopeMa->setGeometry(0,3*ui->frame_scope->height()/4,ui->frame_scope->width(),ui->frame_scope->height()/4);
*/
}
void PowerSystem::mousePressEvent(QMouseEvent *event)