Infinity
17th July 2013, 20:05
Hi,
is it possible to display an icon from theme in a QLabel?
I'm currently displaying an icon from the resources using the following HTML code as text:
<html><head/><body><p style="font-weight: bold"><img src=":/images/information.png"/> Currently there is no (supported) tag assigned.</p></body></html>
Is there an way to use an icon from theme in HTML code like it can be achieved using the following code:
QIcon::fromTheme(QStringLiteral("list-add"), QIcon(QStringLiteral(":/images/add")))
Thanks for you answers.
is it possible to display an icon from theme in a QLabel?
I'm currently displaying an icon from the resources using the following HTML code as text:
<html><head/><body><p style="font-weight: bold"><img src=":/images/information.png"/> Currently there is no (supported) tag assigned.</p></body></html>
Is there an way to use an icon from theme in HTML code like it can be achieved using the following code:
QIcon::fromTheme(QStringLiteral("list-add"), QIcon(QStringLiteral(":/images/add")))
Thanks for you answers.