备份
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
#pragma execution_character_set("utf-8")
|
||||
const std::string softwareVersion = "2.0.3";
|
||||
const std::string softwareVersion = "V20251029-2.1.0";
|
||||
const std::string euiJsonVersion = "1.0.6";
|
||||
#define globalDatabasePth "./sqlDatabase/eui_db.db" //全局数据库路径
|
||||
#define saveImgEnable 1
|
||||
|
||||
@@ -103,6 +103,7 @@ public:
|
||||
background-color: transparent;
|
||||
}
|
||||
QTableView::item:selected {
|
||||
color: #ffffff;
|
||||
background-color: transparent;
|
||||
}
|
||||
QTableView::item:alternate {
|
||||
@@ -250,6 +251,7 @@ private:
|
||||
}
|
||||
case QVariant::Type::Int: {
|
||||
QSpinBox* spinBox = new QSpinBox();
|
||||
spinBox->setMaximumWidth(160);
|
||||
spinBox->setRange(INT_MIN, INT_MAX);
|
||||
spinBox->setValue(value.toInt());
|
||||
spinBox->setToolTip(generateTypeHint(type));
|
||||
@@ -257,6 +259,7 @@ private:
|
||||
}
|
||||
case QVariant::Type::Double: {
|
||||
QDoubleSpinBox* spinBox = new QDoubleSpinBox();
|
||||
spinBox->setMaximumWidth(160);
|
||||
spinBox->setDecimals(3);//显示小位数
|
||||
spinBox->setValue(value.toDouble());
|
||||
spinBox->setToolTip(generateTypeHint(type));
|
||||
|
||||
@@ -138,7 +138,7 @@ protected:
|
||||
}
|
||||
|
||||
private:
|
||||
int sizeX = 1000, sizeY = 500;
|
||||
int sizeX = 1000, sizeY = 720;
|
||||
QListWidget* btnWidgets;
|
||||
// 用 QListView + 模型 替代原来的垂直布局
|
||||
QListView* plcValueViewerList;
|
||||
|
||||
Reference in New Issue
Block a user