View Full Version : How to insert an image in background of a Form?
awanish_jmi
12th July 2008, 18:44
hi frnds...
plz help me
How to insert an image in background of a Form ? i'm using Qt 3...
thanks...
jacek
12th July 2008, 22:00
You can set a QBrush with a pixmap as the background color in QPalette and then assign the palette to the form.
Nithya
8th August 2008, 10:52
I paintevent funtion
paintEvent()
{
QPainter painter(this);
painter.setBackgroundMode (Qt::TransparentMode);//set transparency
painter.drawPixmap(QPointF(0,0), bgpix );//draw the background pixmap
}
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.