[Interest] QIcon addFile 10 seconds slower than addPixmap

nus1998 nus1998 at yeah.net
Mon Nov 26 04:15:05 CET 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181126/0dfb59d9/attachment.html>


More information about the Interest mailing list