Difference in QListView rendering between 4.7 and 4.8?

  • I am working on upgrading our application from 4.7.4 to 4.8.4. I have noticed that there seems to be a difference in the rendering of items in a QListView we have, and it is not an improvement. Considder this screenshot of a single selected item (on Windows 7):
    !http://dl.dropbox.com/u/16442531/ListViewItem474.png(Item as rendered on 4.7.4)!
    Now, compare with an item rendered on a build using Qt 4.8.4:
    !http://dl.dropbox.com/u/16442531/ListViewItem484.png(Item as rendered on 4.8.4)!
    Please ignore the difference in the thumbnails themselves, but focus on the way the selection state is rendered. All of a sudden a blueish box appears that marks the area of the thumbnail itself. What is going on here? Any suggestions how to get rid of that box again?

    The image is passed for the DecorationRole from the model as a QImage. Changing that to a QPixmap did not help.

  • I managed to solve it by making sure the background of the thumbnail is transparent, instead of white. Still not sure why it looked perfect on Qt 4.7 and not on 4.8 though, so I am not marking this as [Solved] yet.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.