ram4soft
8th March 2011, 15:50
Hi,
How to add two icons/images to the same QPushButton.
ie, i want to add one icon with alignment left and another in the center besdes to the text ??
i'm doing the following but it shows only one icon
championbtn=new QPushButton;
championbtn->setText("any");
championbtn->setIcon(QIcon(":/images/DEFAULT-LOGO.png"));
championbtn->setIcon(QIcon(":/images/CLOSE.png"));
championbtn->setIconSize(QSize(31,31));
thanks
Ram
How to add two icons/images to the same QPushButton.
ie, i want to add one icon with alignment left and another in the center besdes to the text ??
i'm doing the following but it shows only one icon
championbtn=new QPushButton;
championbtn->setText("any");
championbtn->setIcon(QIcon(":/images/DEFAULT-LOGO.png"));
championbtn->setIcon(QIcon(":/images/CLOSE.png"));
championbtn->setIconSize(QSize(31,31));
thanks
Ram