[Qt-interest] load jpg files
RPREMANAND RPREMANAND
premndbe at gmail.com
Tue Sep 1 10:19:18 CEST 2009
Hi,
I tried to load JPEG files in my application using
void paintEvent(QPainterEvent * event){
QImage *img= new QImage(tr("/images/16.jp"),Qt::Format_RGB32);
QPixmap *pmp=new QPixmap(tr("/images/16.jpg")) ;
QPainter p(this);
p.drawPixmap(0,0,50,50,*pmp );
}
I also used img->load(tr("/images/16.jpg"))
pmp->load(tr("/images/16.jpg"));
i also did
drawImage(img);
Im unable to embed the resource in my application.
I faced failure in all my attempts .
Pls help in this.
Thanks in advance,
Premanand Rangasamy.
--
Prem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090901/009c13f9/attachment.html
More information about the Qt-interest-old
mailing list