|
40 | 40 | #include <QFontDatabase>
|
41 | 41 | #include <QFontMetrics>
|
42 | 42 | #include <QGuiApplication>
|
| 43 | +#include <QJsonObject> |
43 | 44 | #include <QKeyEvent>
|
44 | 45 | #include <QLineEdit>
|
45 | 46 | #include <QList>
|
46 | 47 | #include <QLocale>
|
47 | 48 | #include <QMenu>
|
48 | 49 | #include <QMouseEvent>
|
| 50 | +#include <QPluginLoader> |
49 | 51 | #include <QProgressDialog>
|
50 | 52 | #include <QScreen>
|
51 | 53 | #include <QSettings>
|
@@ -908,6 +910,20 @@ void LogQtInfo()
|
908 | 910 | const std::string plugin_link{"dynamic"};
|
909 | 911 | #endif
|
910 | 912 | LogPrintf("Qt %s (%s), plugin=%s (%s)\n", qVersion(), qt_link, QGuiApplication::platformName().toStdString(), plugin_link);
|
| 913 | + const auto static_plugins = QPluginLoader::staticPlugins(); |
| 914 | + if (static_plugins.empty()) { |
| 915 | + LogPrintf("No static plugins.\n"); |
| 916 | + } else { |
| 917 | + LogPrintf("Static plugins:\n"); |
| 918 | + for (const QStaticPlugin& p : static_plugins) { |
| 919 | + QJsonObject meta_data = p.metaData(); |
| 920 | + const std::string plugin_class = meta_data.take(QString("className")).toString().toStdString(); |
| 921 | + const int plugin_version = meta_data.take(QString("version")).toInt(); |
| 922 | + LogPrintf(" %s, version %d\n", plugin_class, plugin_version); |
| 923 | + } |
| 924 | + } |
| 925 | + |
| 926 | + LogPrintf("Style: %s / %s\n", QApplication::style()->objectName().toStdString(), QApplication::style()->metaObject()->className()); |
911 | 927 | LogPrintf("System: %s, %s\n", QSysInfo::prettyProductName().toStdString(), QSysInfo::buildAbi().toStdString());
|
912 | 928 | for (const QScreen* s : QGuiApplication::screens()) {
|
913 | 929 | LogPrintf("Screen: %s %dx%d, pixel ratio=%.1f\n", s->name().toStdString(), s->size().width(), s->size().height(), s->devicePixelRatio());
|
|
0 commit comments