[Qt-interest] trying to adjust size of image in a qlabel

mierdatutis mi mmm286 at gmail.com
Wed Nov 4 23:03:37 CET 2009


Hi,

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

Qt Code:

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

Any help please?
Many thanks and sorry for my english!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091104/236e09fd/attachment.html 


More information about the Qt-interest-old mailing list