PDA

View Full Version : Image on PushButton



Vivek1982
8th November 2013, 07:11
Dear All,

I have developed application using QLabel and Qpushbutton. I have created a application, here I need to call a SLOT by SIGNAL of QLabel (label is created and loaded with a image) by clicking on it.plz suggest me. In the QLabel I have linkactivated, hovered etc.How to use it...

Similarly in Pushbutton also, I need to load a Image from qrc file, I can load it but I'm not able to scale it. plz suggest me.

Thanks in Advance.

stampede
8th November 2013, 09:34
load a Image from qrc file, I can load it but I'm not able to scale it

button->setIconSize(size);

QLabel I have linkactivated, hovered etc.How to use it...
Create slots in your class and connect to those signals.