front back det added

This commit is contained in:
2024-08-30 15:45:01 +08:00
parent 83eb308eaf
commit e96f4773c5
5 changed files with 46 additions and 9 deletions
@@ -20,6 +20,7 @@ class switchProductWidget : public QWidget
Q_OBJECT
public:
//
bool disableTextChange = false;
QMutex mutex;
std::vector<productDataStruct>productDatas;
int* currentProductIndexPtr;
@@ -137,14 +138,16 @@ public slots:
if (status == true)
{
startBtn->toDefault();
startBtn->setText("运行");
if(disableTextChange == false)
startBtn->setText("运行");
snIntputLine->setDisabled(false);
std::cout << "按下软件运行" << std::endl;
}
else
{
startBtn->toRed();
startBtn->setText("急停");
if (disableTextChange == false)
startBtn->setText("急停");
snIntputLine->setDisabled(true);
std::cout << "按下软件急停" << std::endl;
}