28 lines
697 B
C++
28 lines
697 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 readConfigSize(QString filePathName, int &iIndex, int &iNum, int &iOneWidth, int &iHeadHigh, int &iTitleHigh, int &iCurveHigh, int &iMove, int &iPointNum, int &iLineNum);
|
|
|
|
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);
|
|
|
|
};
|