10int main(
int argc,
char *argv[])
12 QApplication app(argc, argv);
14 QCoreApplication::setOrganizationName(u"QtProject"_s);
15 QCoreApplication::setApplicationName(u"QDBusViewer"_s);
18#if !defined(Q_OS_MACOS) && !defined(Q_OS_WIN)
19 app.setWindowIcon(QIcon(
":/qt-project.org/qdbusviewer/images/qdbusviewer.png"_L1));
22 mw.setWindowTitle(qApp->translate(
"QtDBusViewer",
"Qt D-Bus Viewer"));
25 QStringList args = app.arguments();
27 QString arg = args.takeFirst();
28 if (arg ==
"--bus"_L1)
29 mw.addCustomBusTab(args.takeFirst());