lau*_*ent 5 icons qt launcher ubuntu-unity
我试图让我的 Qt 应用程序在 Unity Launcher 中显示一个图标,但它不起作用。在代码中,我只是使用:
qApp->setWindowIcon(QIcon("path/to/icon.png"));
Run Code Online (Sandbox Code Playgroud)
但它没有做任何事情。我也试过直接在主窗口上设置图标,但也无济于事。
知道可能是什么问题吗?
PS:我已经检查了图标路径,它是正确的。