PDA

View Full Version : trying to adjust size of image in a qlabel



mmm286
4th November 2009, 15:52
Hi,

I would like to adjust an image in a qlabel but I can't. I do this but I have an error:



QPixmap imagen("/home/david/proyectos_python/larguero.jpg");
etiqueta->setPixmap(imagen,Qt::IgnoreAspectRatio);


Any help please?
Many thanks and sorry for my english!

axeljaeger
5th November 2009, 06:43
So what is your error?