🛰️航天仿真算法库 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(const UiFilePath&) = delete;
41 UiFilePath& operator=(const UiFilePath&) = delete;
42 UiFilePath(QWidget* parent = nullptr);
43
46 void setPath(const QString& path);
47
50 void setPath(StringView path);
51
52
55 QString path() const;
56
59 void setFilter(const QString& filter);
60
63 QString filter() const;
64
65signals:
66 void pathChanged(const QString& path);
67private slots:
68 void onBrowse();
69 void onEditingFinished();
70private:
71 UiValueEdit* lineEdit_{nullptr};
72 QString currentPath_{};
73 QString filter_{};
74};
75
78AST_NAMESPACE_END
文件路径输入框
定义 UiFilePath.hpp:36
数值输入框基类
定义 UiValueEdit.hpp:36