diff --git a/app/main.cpp b/app/main.cpp index a1e442e..81e4381 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -52,8 +52,13 @@ int main(int argc, char *argv[]) parser.process(a); if (parser.isSet(supportedImageFormats)) { +#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0) fputs(qPrintable(MainWindow::supportedImageFormats().join(QChar('\n'))), stdout); ::exit(EXIT_SUCCESS); +#else + QCommandLineParser::showMessageAndExit(QCommandLineParser::MessageType::Information, + MainWindow::supportedImageFormats().join(QChar('\n'))); +#endif } MainWindow w;