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>
<html><head/><body><p style="font-weight: bold"><img src=":/images/information.png"/> Currently there is no (supported) tag assigned.</p></body></html>
To copy to clipboard, switch view to plain text mode
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")))
QIcon::fromTheme(QStringLiteral("list-add"), QIcon(QStringLiteral(":/images/add")))
To copy to clipboard, switch view to plain text mode
Thanks for you answers.
Bookmarks