test_simple_player.cpp 922 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * @file test_simple_player.cpp
  3. * @brief SimplePlayerWindow OpenGL渲染器测试程序
  4. * @author AI Assistant
  5. * @date 2024
  6. */
  7. #include "code/player/SimplePlayerWindow.h"
  8. #include <QApplication>
  9. #include <QDebug>
  10. int main(int argc, char* argv[])
  11. {
  12. QApplication app(argc, argv);
  13. // 设置应用程序信息
  14. app.setApplicationName("SimplePlayerWindow OpenGL Test");
  15. app.setApplicationVersion("1.0");
  16. app.setOrganizationName("AV Player");
  17. qDebug() << "Starting SimplePlayerWindow OpenGL test...";
  18. // 创建SimplePlayerWindow
  19. SimplePlayerWindow window;
  20. window.show();
  21. qDebug() << "SimplePlayerWindow created and shown";
  22. // 如果有命令行参数,可以在这里处理
  23. if (argc > 1) {
  24. qDebug() << "Command line file argument:" << argv[1];
  25. // 这里可以添加自动打开文件的逻辑
  26. }
  27. return app.exec();
  28. }