/
SerZok
/
LIDE
Обзор
Документация
Войти
/
SerZok
/
LIDE
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/app/main.cpp
26 строк
493 B
SerZok
feature [Settings_Dialog]: Разработка Ui
04 апр 2026, 00:20
04 апр 2026, 00:20
86ac5b7
Код
Авторство
О чём код?
#include "dialogs/mainwindow.h" #include <QApplication> #include <QLocale> #include <QTranslator> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; QStringList files; for (int i = 1; i < argc; ++i) { QString filePath = QString::fromLocal8Bit(argv[i]); if (QFile::exists(filePath)) { files << filePath; } } if (!files.isEmpty()) { w.openFiles(files); } w.show(); return a.exec(); }