Answer the question
In order to leave comments, you need to log in
Why are images not added to widgets in QT Creator?
I looked on the Internet, it seems to be nowhere easier, but I rushed to make buttons with pictures and it started. Image added as a resource (in PNG format):
<RCC>
<qresource prefix="/icons">
<file>newfile.png</file>
</qresource>
</RCC>
QToolButton {
background-image: url(:/icons/newfile.png);
border-style: solid;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question