Commit 48a976f
committed
Exclude Qt6 from IMAGEVIEW_DIRECTUPDATE and IMAGEVIEW_QUICKUPDATE
Qt6, like Qt5, requires all painting to go through the standard event
loop via paintEvent(). The IMAGEVIEW_DIRECTUPDATE and IMAGEVIEW_QUICKUPDATE
optimizations bypass this, causing sluggish rendering and UI glitches
when editing or zooming.
The original code excluded Qt5 but not Qt6, which was added to Lazarus
after this code was written (2020).
Qt documentation confirms Qt6 maintains the same paint model as Qt5,
with repaint() being deprecated in favor of update() for event-driven
painting.1 parent 365ba1b commit 48a976f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments