main.cpp 502 B

12345678910111213141516171819202122232425262728
  1. #include "spdlog/spdlog.h"
  2. #include "logs/loginit.h"
  3. #include <QApplication>
  4. #include "oscwidget.h"
  5. int main(int argc, char* argv[])
  6. {
  7. QApplication app(argc, argv);
  8. /* 初始化日志库 */
  9. init_log();
  10. auto logger = spdlog::get("main");
  11. if(logger == nullptr)
  12. {
  13. SPDLOG_ERROR("main logger is nullptr");
  14. return -1;
  15. }
  16. SPDLOG_LOGGER_INFO(logger, "★ ★ ★ Oscilloscope ★ ★ ★");
  17. OscWidget w;
  18. w.show();
  19. return app.exec();
  20. }