🛰️航天仿真算法库 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 void setPath(StringView path);
49
50
53 QString path() const;
54
57 void setFilter(const QString& filter);
58
61 QString filter() const;
62
63signals:
64 void pathChanged(const QString& path);
65private slots:
66 void onBrowse();
67 void onEditingFinished();
68private:
69 UiValueEdit* lineEdit_{nullptr};
70 QString currentPath_;
71 QString filter_;
72};
73
76AST_NAMESPACE_END
文件路径输入框
定义 UiFilePath.hpp:36
数值输入框基类
定义 UiValueEdit.hpp:36