|
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>
|
@@ -936,6 +938,20 @@ void LogQtInfo()
|
936 | 938 | const std::string plugin_link{"dynamic"};
|
937 | 939 | #endif
|
938 | 940 | LogPrintf("Qt %s (%s), plugin=%s (%s)\n", qVersion(), qt_link, QGuiApplication::platformName().toStdString(), plugin_link);
|
| 941 | + const auto static_plugins = QPluginLoader::staticPlugins(); |
| 942 | + if (static_plugins.empty()) { |
| 943 | + LogPrintf("No static plugins.\n"); |
| 944 | + } else { |
| 945 | + LogPrintf("Static plugins:\n"); |
| 946 | + for (const QStaticPlugin& p : static_plugins) { |
| 947 | + QJsonObject meta_data = p.metaData(); |
| 948 | + const std::string plugin_class = meta_data.take(QString("className")).toString().toStdString(); |
| 949 | + const int plugin_version = meta_data.take(QString("version")).toInt(); |
| 950 | + LogPrintf(" %s, version %d\n", plugin_class, plugin_version); |
| 951 | + } |
| 952 | + } |
| 953 | + |
| 954 | + LogPrintf("Style: %s / %s\n", QApplication::style()->objectName().toStdString(), QApplication::style()->metaObject()->className()); |
939 | 955 | LogPrintf("System: %s, %s\n", QSysInfo::prettyProductName().toStdString(), QSysInfo::buildAbi().toStdString());
|
940 | 956 | for (const QScreen* s : QGuiApplication::screens()) {
|
941 | 957 | LogPrintf("Screen: %s %dx%d, pixel ratio=%.1f\n", s->name().toStdString(), s->size().width(), s->size().height(), s->devicePixelRatio());
|
|
0 commit comments