logplus/logPlus/qtcommonclass.h
2026-04-17 17:59:52 +08:00

34 lines
1017 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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);
};