1 Star 2 Fork 2

LSuper / QtPacker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
QtPath.h 957 Bytes
一键复制 编辑 原始数据 按行查看 历史
LSuper 提交于 2022-10-15 23:11 . feat:1.增加process类,解耦合
#ifndef QTPATH_H
#define QTPATH_H
#include <QDir>
#include <QFileInfo>
#include <QObject>
#include <unordered_map>
class QtPath : public QObject
{
Q_OBJECT
public:
explicit QtPath(QObject *parent = nullptr);
/**
* @brief SetQtPath 选择Qt安装路径
* @param path
*/
void SetQtPath(const QString &path);
/**
* @brief GetEnvBatPath 获取bin路径下的qtenv2.bat路径
* @param str 选择的编译器
* @return
*/
QString GetEnvBatPath(const QString &str);
QVector<QString> GetComplierResult() { return complierList; }
private:
bool FindCompiler(const QString &path);
QString RegexMatch(QRegExp ex, const QVector<QString> &v);
private:
QString installPath; //保存Qt安装路径
QDir qPath; //保存Qt/5.15.2/路径
QRegExp versionReg; //匹配5.15.2
QVector<QString> complierList; //编译器列表
};
#endif // QTPATH_H
C++
1
https://gitee.com/l-super/qt-packer.git
git@gitee.com:l-super/qt-packer.git
l-super
qt-packer
QtPacker
master

搜索帮助