Commit 4f34f0c
Fix QWheelEvent source attribute error in DraggableImageListWidget
In PyQt6, QWheelEvent no longer has a `source()` method. When creating a new QWheelEvent, `device=event.device()` must be passed instead. This commit updates the `wheelEvent` handler in `DraggableImageListWidget` to properly instantiate the updated event structure without causing an AttributeError.
Co-authored-by: kangjoseph90 <83045825+kangjoseph90@users.noreply.github.com>1 parent 682a160 commit 4f34f0c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments