🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
UiFilePath.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "UiValueEdit.hpp"
25
26AST_NAMESPACE_BEGIN
27
35class AST_GUI_API UiFilePath: public QWidget
36{
37 Q_OBJECT
38
39public:
40 UiFilePath(QWidget* parent = nullptr);
41
44 void setPath(const QString& path);
45
48 QString path() const;
49
52 void setFilter(const QString& filter);
53
56 QString filter() const;
57
58signals:
59 void pathChanged(const QString& path);
60private slots:
61 void onBrowse();
62 void onEditingFinished();
63private:
64 UiValueEdit* lineEdit_{nullptr};
65 QString currentPath_;
66 QString filter_;
67};
68
71AST_NAMESPACE_END
文件路径输入框
定义 UiFilePath.hpp:36
数值输入框基类
定义 UiValueEdit.hpp:36