Hi,
I want to add a small image centered on the push button as well as a descriptive text below it. This should give an effect like shown in the attached image.
Attachment 8072
How can I achieve this.
Thanks in advance.
- Charvi.
Printable View
Hi,
I want to add a small image centered on the push button as well as a descriptive text below it. This should give an effect like shown in the attached image.
Attachment 8072
How can I achieve this.
Thanks in advance.
- Charvi.
By calling the methods corresponding to adding an icon and a text to a button.Quote:
How can I achieve this.
Use QToolButton instead of QPushButton.
Any other way of achieving this using push button itself ?
Sure, subclass QPushButton and override the paintEvent() to do whatever you want to paint the widget. You will almost certainly find the QToolButton easier to use.