I am trying to get the Qt application to display an icon in Unity Launcher, but it does not work. In the code, I just use:
qApp->setWindowIcon(QIcon("path/to/icon.png"));
but he does nothing. I also tried to set the icon directly in the main window, but that doesn't help either.
Any idea what could be the problem?
PS: I checked the icon path and that is correct.
source share