Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.11.3, 5.12.0
-
None
-
Windows 7
Qt Creator 4.8.0 + MSVC2017
-
-
406d1dcfd744c2fca87e1d151a467bbcd914380b (qt/qtbase/5.12.1)
Description
I updated a project from Qt 5.6 to Qt 5.12 and I noticed that the selection in QListView was being painted incomplete - on the first item the left margin was looking ok, but not the right margin. On the following items neither margin looked good, and on the last item only the right margin was painted correctly.
After a quick look in the changes of the qlistview.cpp file, I have found the following commit which seems to explain the behavior I have been seeing: https://github.com/qt/qtbase/commit/1aa3edf3f888f394040d32d4a211257f9e9e2791.(QStyleOptionViewItem::viewItemPosition)
The problem can be reproduced with the latest Qt Creator 4.8.0 where QListViews are being used. I attached three screenshots from the Options dialog where you can see the issue.
Attachments
Issue Links
- resulted from
-
QTBUG-27110 QListWidget:item::first has no effect
-
- Open
-