if you mean the task bar then it's:
QWidget::setWindowIcon(QIcon(":/some.icon"));
To copy to clipboard, switch view to plain text mode
if you mean the icon tray (usually in bottom right corner) then it's:
icon
->setIcon
(QIcon(":/some.icon"));
icon->show();
QSystemTrayIcon* icon = new QSystemTrayIcon(this);
icon->setIcon(QIcon(":/some.icon"));
icon->show();
To copy to clipboard, switch view to plain text mode
But I guess it's not the second option as you would have to use it to show the icon in the first place.
Bookmarks