2025-10-29 17:23:30 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
#include <QTextStream>
|
|
|
|
|
|
#include <QPushButton>
|
|
|
|
|
|
|
|
|
|
|
|
#pragma execution_character_set("utf-8")
|
|
|
|
|
|
|
|
|
|
|
|
class QtCommonClass : public QObject
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
QtCommonClass(QObject *parent);
|
|
|
|
|
|
~QtCommonClass();
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
QString getUUid();
|
|
|
|
|
|
|
2025-11-26 16:56:00 +08:00
|
|
|
|
//读取,是否隐藏刻度
|
|
|
|
|
|
double readShowScale(QString filePathName, int &iShow);
|
2026-04-17 11:50:50 +08:00
|
|
|
|
//读取,MyCustom界面高度
|
|
|
|
|
|
double readHeight(QString filePathName, int &iHeight);
|
2026-04-17 17:59:52 +08:00
|
|
|
|
//Debug模式,记录出图的原始图片
|
|
|
|
|
|
double readDebug(QString filePathName, int &iDebug);
|
|
|
|
|
|
//Small模式,出图的原始图片是否采用小图片(默认0:大图--缺点出图时占用内存大, 1:小图--缺点小图拼接容易有缝隙)
|
|
|
|
|
|
double readSmallPrint(QString filePathName, int &iSmallPrint);
|
2025-10-29 17:23:30 +08:00
|
|
|
|
|
|
|
|
|
|
double readXyRange(QString filePathName, int &iX1, int &iX2, int &iY1, int &iY2);
|
|
|
|
|
|
|
|
|
|
|
|
void setButtonIconWithText(QPushButton *button, const QString &imagePath, const QString &text, const QFont &font, const QColor &textColor);
|
|
|
|
|
|
|
|
|
|
|
|
};
|