按钮宽度自适应

This commit is contained in:
jxder 2025-08-31 01:45:29 +08:00
parent 70a3285908
commit 4fa60ae9ac

View File

@ -70,7 +70,7 @@ void ButtonForm::addToolButtons(QVector<QString> &buttonVec)
toolBtn->setMaximumHeight(40); toolBtn->setMaximumHeight(40);
toolBtn->setMinimumHeight(40); toolBtn->setMinimumHeight(40);
//toolBtn->setMaximumWidth(100); //toolBtn->setMaximumWidth(100);
toolBtn->setMinimumWidth(80); toolBtn->setMinimumWidth(40);
//toolBtn->setIcon(icon); //toolBtn->setIcon(icon);
toolBtn->setText(m_bIsZh?buttonInfo.m_zh:buttonInfo.m_en); toolBtn->setText(m_bIsZh?buttonInfo.m_zh:buttonInfo.m_en);
#ifdef Q_PROCESSOR_ARM_64 #ifdef Q_PROCESSOR_ARM_64