Thank for ur quick reply zen,
i need further clarification...
I have a QDialog.ui ...in that stylesheet property for the QFrame i was set
{
background-image: url(:/images/messagebox.png) no-repeat;
}
QFrame
{
background-image: url(:/images/messagebox.png) no-repeat;
}
To copy to clipboard, switch view to plain text mode
and in my QDialog constructor
QPixmap pixmap
(":/images/messagebox.png");
ui->frame->setMask(pixmap.mask());
reg+=childrenRegion();
setMask(reg);
QPixmap pixmap(":/images/messagebox.png");
ui->frame->setMask(pixmap.mask());
QRegion reg(frameGeometry());
reg-=QRegion(geometry());
reg+=childrenRegion();
setMask(reg);
To copy to clipboard, switch view to plain text mode
but i got an error
dialog.cpp: In constructor ‘Dialog:ialog(QWidget*)’:
dialog.cpp:12: error: invalid use of incomplete type ‘struct QBitmap’
/opt/qtsdk-2010.05/qt/include/QtGui/qwindowdefs.h:77: error: forward declaration of ‘struct QBitmap’
make: *** [dialog.o] Error 1
Bookmarks