Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
how to create an image button
how i can create an image button in qt?
Carmoneer last edited by
Are you looking to have an image as the background on a button? If so, try:
Alternatively, you can use stylesheets. Take a look at the documentation here. Hope this helps!
but i does this but in stylesheet menu,in add resource menu
my images dose not known and identify and just write root!
what i must do?
tnx so much
If you create a QResource file and added to project and and added
the image to this Qres and its not showing then
try to run qmake from the menu.
can you more explain about this?
Not sure which part. :)
This is how u get the qres file
Do down to "Finish. "
Then right click qres and Select Add existing file
then point to ur image.
Then up from Build menu, select qmake & build all
then try to browse again and u should see ur image.
Thanks so Much Bro :)