UserView.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef USERVIEW_H
  2. #define USERVIEW_H
  3. #include <QWidget>
  4. class QVBoxLayout;
  5. class QGridLayout;
  6. class QHBoxLayout;
  7. class QLabel;
  8. class PushButton;
  9. class UserView : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit UserView(QWidget *parent = nullptr);
  14. void paintEvent(QPaintEvent *event) override;
  15. signals:
  16. void signalLogout();
  17. private:
  18. void initilaize();
  19. void initLayout();
  20. void connectSignalsAndSlots();
  21. void refresh();
  22. private slots:
  23. void slotLogout();
  24. private:
  25. /// 图标,版本号,更新内容,构建时间,当前环境,版权声明
  26. QVBoxLayout *m_vBoxLayout = nullptr;
  27. QLabel *m_iconLabel = nullptr;
  28. QGridLayout *m_gridLayout = nullptr;
  29. QLabel *m_accNameLabel = nullptr;
  30. QLabel *m_accValueLabel = nullptr;
  31. QLabel *m_idNameLabel = nullptr;
  32. QLabel *m_idValueLabel = nullptr;
  33. QLabel *m_typeNameLabel = nullptr;
  34. QLabel *m_typeValueLabel = nullptr;
  35. QHBoxLayout *m_hBoxLayout = nullptr;
  36. PushButton *m_confirmButton = nullptr;
  37. };
  38. #endif // USERVIEW_H