记录qt的一些案例,以后方便查找
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
408 B

  1. #ifndef WIDGET_H
  2. #define WIDGET_H
  3. #include <QEvent>
  4. #include <QWidget>
  5. #include <qsystemtrayicon.h>
  6. #include <QDebug>
  7. namespace Ui {
  8. class Widget;
  9. }
  10. /**
  11. *
  12. * @brief The Widget class
  13. */
  14. class Widget : public QWidget
  15. {
  16. Q_OBJECT
  17. public:
  18. explicit Widget(QWidget *parent = nullptr);
  19. ~Widget();
  20. private:
  21. Ui::Widget *ui;
  22. void CreateSystemTrayIcon();
  23. };
  24. #endif // WIDGET_H