How to add Qt Application icon in ubuntu?
This post is deleted!
How to add Qt application icon in ubuntu?
I have read all documentation ..and try to implement that but not work..please help
JonB last edited by JonB
You haven't explained what it is you want to do.
If it's set the icon while an application is running, you can use
If it's set the icon for a desktop launcher, you'll have to create a
.desktopfile and put it on the right place. Mine happens to look like:
[Desktop Entry] Version=1.0 Type=Application Name=Jinn Icon=jinn.png Exec=python3 "Jinn/Code/home.py" Comment=Jinn Application Categories=Application Terminal=false
Where that goes depends on desktop manger. Which you have not specified.
I don't have time right now to type any more, see how you go.
@JonB Thank you..
I will try...
I want set icon after run application in qt..But i want this work on ubuntu
JonB last edited by
I want set icon after run application in qt
Then if you're not trying to have the icon as a clickable link on your desktop, but simply to show up as the icon for the application once you run it, you won't need a
.desktopfile, you'll only need the
But i want this work on ubuntu
That's why I gave you a working example on Ubuntu.
@JonB Solved it.
Thank you ..
Can you please share how you solved it ?
Solved it by using QMainWindow::setWindowIcon() for setting icon .