30 lines
687 B
C++
30 lines
687 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);
|
|
|
|
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);
|
|
|
|
};
|