nus1998
2018-11-26 03:15:05 UTC
Hi All,
I'm developing an application on an embedded system which use linuxfb as the qpa plugin, and the qt is 5.9.6
In some UI pages that generated automatically by qmake, I found that icon.addFile(QStringLiteral(":/image/icons/ok.png"), QSize(), QIcon::Normal, QIcon::Off); cost 10 seconds, however, if I change it to icon.addPixmap(QStringLiteral(":/image/icons/ok.png"), QIcon::Normal, QIcon::Off); it will be executed immediatelly. as the addFile method is the default method that qmake works, I wonder what I can do to avoid this low waiting in addFile?
B.R.
Nus
I'm developing an application on an embedded system which use linuxfb as the qpa plugin, and the qt is 5.9.6
In some UI pages that generated automatically by qmake, I found that icon.addFile(QStringLiteral(":/image/icons/ok.png"), QSize(), QIcon::Normal, QIcon::Off); cost 10 seconds, however, if I change it to icon.addPixmap(QStringLiteral(":/image/icons/ok.png"), QIcon::Normal, QIcon::Off); it will be executed immediatelly. as the addFile method is the default method that qmake works, I wonder what I can do to avoid this low waiting in addFile?
B.R.
Nus