Alpha masked top level window rendered different in Qt4 after port from Qt3
-
I'm porting a silly little alarm popup app from Qt3 to Qt4, and after getting it to link, the window which is supposed to be displaying a partially transparent .png file with an alpha mask (so I can pop up any shape reminder I want) looks completely different. http://home.comcast.net/~tomhorsley/qt3ToQt4.jpg shows the Qt3 version on the left and Qt4 on the right. I followed a porting guide and changed the call to
@ setErasePixmap(*theme->AlarmBackground());
@to this code using a palette:
@ QPalette palette;
palette.setBrush(backgroundRole(), QBrush(*theme->AlarmBackground()));
setPalette(palette);
@
I have a feeling the difference is around there somewhere. Anyone have a hint about why it is so different?