ui界面有太多逻辑,ui会卡
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user