feat:初始化wuhan_QT界面代码

This commit is contained in:
xu
2026-09-09 17:00:37 +08:00
commit 40473ad10b
537 changed files with 23934 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef ALARMBANNER_H
#define ALARMBANNER_H
#include <QWidget>
class QLabel;
// ===================== 告警横幅 =====================
// 整行红色文字,500ms 闪烁;showAlarm 显示,clear 隐藏
class AlarmBanner : public QWidget
{
Q_OBJECT
public:
explicit AlarmBanner(QWidget* parent = nullptr);
void showAlarm(const QString& text);
void clear();
private:
QLabel* m_label = nullptr;
};
#endif // ALARMBANNER_H