#include #include #include "AVPlayer/avplayerwidget.h" #include "AVPlayer/vframe.h" #include "widgets/recorderwidget.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); qRegisterMetaType>("QSharedPointer"); try { qDebug() << "Creating RecorderWidget..."; RecorderWidget testRecorder; qDebug() << "Showing RecorderWidget..."; testRecorder.show(); AVPlayerWidget avPlayerWidget; avPlayerWidget.show(); qDebug() << "RecorderWidget created and shown successfully!"; return app.exec(); } catch (const std::exception& e) { qCritical() << "Exception caught:" << e.what(); return -1; } catch (...) { qCritical() << "Unknown exception caught"; return -1; } }