OpenRV icon indicating copy to clipboard operation
OpenRV copied to clipboard

Feature/qt6 - Fix icons not showing up in the RvFileDialog on Windows (compared to Qt5)

Open cedrik-fuoco-adsk opened this issue 7 months ago • 0 comments

Feature/qt6 - Fix icons not showing up in the RvFileDialog (compared to Qt5)

Linked issues

n/a

Summarize your change.

On Windows, I added a custom delegate for the QTreeView because it seems there is an issue (or changes in Qt 6) with the alternatingRowColors options in Qt 6's QAbstractItemView. The alternating background is painted over the icon which results in the missing icons.

The custom delegate paints the elements in this order:

  1. Background
  2. Highlights
  3. Icon
  4. Text

Describe the reason for the change.

After comparing the RvFileDialog between the Qt 5 and Qt 6 version of RV, the icons were still missing on Windows.

Describe what you have tested and on which operating system.

Windows

If possible, provide screenshots.

image

cedrik-fuoco-adsk avatar Apr 25 '25 14:04 cedrik-fuoco-adsk