Wednesday, 15 June 2011

qt - Overloading Images -



qt - Overloading Images -

i'm trying implement cable combination in qt shown in image below

i used references created .qrc file , added images file , used method qimage.load("\cond.png"); , working. want implement image combinations layers loading on 1 like:

and

should give me image

i want implement code combining 2 image files @ same time 1 on other or layer on layer. need help

you can paint images on widget using qpainter:

void widget::paintevent(qpaintevent *event) { qpainter painter(this); painter.drawimage(0, 0, qimage(":/1.png")); painter.drawimage(0, 0, qimage(":/2.png")); }

but should have images trasparency want (all images in illustration have white background).

qt

No comments:

Post a Comment