2026-04-08 14:17:47 +08:00
|
|
|
#ifndef PROPERTYDLG_H
|
|
|
|
|
#define PROPERTYDLG_H
|
|
|
|
|
/*********存放属性栏的窗口(运行时)*******/
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
|
|
class PropertyDlg : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
PropertyDlg(QWidget *parent = nullptr);
|
|
|
|
|
~PropertyDlg();
|
|
|
|
|
|
|
|
|
|
void setContent(QWidget* content);
|
|
|
|
|
void removeContent(QWidget* content);
|
|
|
|
|
private:
|
|
|
|
|
QVBoxLayout* _layout;
|
2026-04-24 17:14:45 +08:00
|
|
|
QWidget* _curWidget;
|
2026-04-08 14:17:47 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|