widget.cpp 756 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #include "widget.h"
  2. #include "./ui_widget.h"
  3. #include <QTimer>
  4. #include "spdlog/spdlog.h"
  5. #include "fmtlog.h"
  6. #include "LightLog.h"
  7. Widget::Widget(QWidget *parent)
  8. : QWidget(parent)
  9. , ui(new Ui::Widget)
  10. {
  11. ui->setupUi(this);
  12. SPDLOG_INFO("***** Qt Library *****");
  13. }
  14. Widget::~Widget()
  15. {
  16. delete ui;
  17. }
  18. void Widget::on_pBtn_connect_clicked()
  19. {
  20. SPDLOG_INFO("点击了“连接按钮”");
  21. std::vector<std::string> list;
  22. }
  23. void Widget::on_pBtn_downloadFile_clicked()
  24. {
  25. SPDLOG_INFO("点击了“下载文件”");
  26. }
  27. void Widget::on_pBtn_downloadVideo_clicked()
  28. {
  29. SPDLOG_INFO("点击了“下载视频”");
  30. }
  31. void Widget::on_pBtn_logSpeed_clicked()
  32. {
  33. SPDLOG_INFO("点击了“日志速度”");
  34. }