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. Difference in QListView rendering between 4.7 and 4.8?
Forum Updated to NodeBB v4.3 + New Features

Difference in QListView rendering between 4.7 and 4.8?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.4k 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.
  • A Offline
    A Offline
    andre
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      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.

      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