Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Alpha masked top level window rendered different in Qt4 after port from Qt3

Alpha masked top level window rendered different in Qt4 after port from Qt3

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 531 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Claghorn
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved