|
50 | 50 | #include <QFontDatabase>
|
51 | 51 | #include <QFontMetrics>
|
52 | 52 | #include <QGuiApplication>
|
| 53 | +#include <QJsonObject> |
53 | 54 | #include <QKeyEvent>
|
54 | 55 | #include <QLineEdit>
|
55 | 56 | #include <QList>
|
56 | 57 | #include <QLocale>
|
57 | 58 | #include <QMenu>
|
58 | 59 | #include <QMouseEvent>
|
| 60 | +#include <QPluginLoader> |
59 | 61 | #include <QPointer>
|
60 | 62 | #include <QProgressDialog>
|
61 | 63 | #include <QScreen>
|
@@ -1814,6 +1816,20 @@ void LogQtInfo()
|
1814 | 1816 | const std::string plugin_link{"dynamic"};
|
1815 | 1817 | #endif
|
1816 | 1818 | LogPrintf("Qt %s (%s), plugin=%s (%s)\n", qVersion(), qt_link, QGuiApplication::platformName().toStdString(), plugin_link);
|
| 1819 | + const auto static_plugins = QPluginLoader::staticPlugins(); |
| 1820 | + if (static_plugins.empty()) { |
| 1821 | + LogPrintf("No static plugins.\n"); |
| 1822 | + } else { |
| 1823 | + LogPrintf("Static plugins:\n"); |
| 1824 | + for (const QStaticPlugin& p : static_plugins) { |
| 1825 | + QJsonObject meta_data = p.metaData(); |
| 1826 | + const std::string plugin_class = meta_data.take(QString("className")).toString().toStdString(); |
| 1827 | + const int plugin_version = meta_data.take(QString("version")).toInt(); |
| 1828 | + LogPrintf(" %s, version %d\n", plugin_class, plugin_version); |
| 1829 | + } |
| 1830 | + } |
| 1831 | + |
| 1832 | + LogPrintf("Style: %s / %s\n", QApplication::style()->objectName().toStdString(), QApplication::style()->metaObject()->className()); |
1817 | 1833 | LogPrintf("System: %s, %s\n", QSysInfo::prettyProductName().toStdString(), QSysInfo::buildAbi().toStdString());
|
1818 | 1834 | for (const QScreen* s : QGuiApplication::screens()) {
|
1819 | 1835 | LogPrintf("Screen: %s %dx%d, pixel ratio=%.1f\n", s->name().toStdString(), s->size().width(), s->size().height(), s->devicePixelRatio());
|
|
0 commit comments