34 lines
1017 B
C++
34 lines
1017 B
C++
#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();
|
||
|
||
//读取,是否隐藏刻度
|
||
double readShowScale(QString filePathName, int &iShow);
|
||
//读取,MyCustom界面高度
|
||
double readHeight(QString filePathName, int &iHeight);
|
||
//Debug模式,记录出图的原始图片
|
||
double readDebug(QString filePathName, int &iDebug);
|
||
//Small模式,出图的原始图片是否采用小图片(默认0:大图--缺点出图时占用内存大, 1:小图--缺点小图拼接容易有缝隙)
|
||
double readSmallPrint(QString filePathName, int &iSmallPrint);
|
||
|
||
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);
|
||
|
||
};
|