终端scroll修改为滑动不受接收数据影响

This commit is contained in:
hm
2021-04-22 10:24:09 +08:00
parent b43b33224f
commit a68945f09c
7 changed files with 77 additions and 20 deletions
+26
View File
@@ -116,7 +116,33 @@ StatusUI::~StatusUI()
delete ui;
}
void StatusUI::resizeEvent(QResizeEvent *event)
{
//qDebug() << event;
//计算一个使用多少长度
if(GroupList.size() > 0)
{
for( QMap<int,StateGroup *>::iterator i = GroupList.begin();i != GroupList.end();i++)
{
StateGroup *g = i.value();
//ui->gridLayout->addWidget(g,g->ID(),0,1,1);
qDebug() << g->size();
}
/*
QVBoxLayout * vb = new QVBoxLayout;
vb->addStretch();
ui->gridLayout->addLayout(vb,GroupList.size(),0,1,1);
*/
}
}
void StatusUI::setColor(int group,int index,StateWidget::state s)
{