Sorry, there is a typo in the last line: app.setWindowIcon(pm) instead of app.setWindowIcon(icon).

On 2/24/2020 4:20 PM, Alexander Dyagilev wrote:

QIcon icon(":/icon.ico");
auto pm = icon.pixmap(QSize(32,32));
app.setWindowIcon(icon);


_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to