这适用于 X,但不适用于 eglfs。
Button {
icon.name: "computer-fail-symbolic"
icon.height: 96
icon.width: 96
display: AbstractButton.TextUnderIcon
text: "BSOD"
flat: true
}
...
int main(int argc, char *argv[])
{
qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
QIcon::setThemeName( "Papirus" );
QtWebEngine::initialize();
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.addImportPath("qrc:/");
const QUrl url(QStringLiteral("qrc:/main.qml"));
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
&app, [url](QObject *obj, const QUrl &objUrl) {
if (!obj && url == objUrl)
QCoreApplication::exit(-1);
}, Qt::QueuedConnection);
engine.load(url);
return app.exec();
}
也不能使用按钮填充。
如何修复图标?