Skip to content

test(ui): fix QDragEnterEvent for Qt < 6.9 - #52

Merged
blocksmith314 merged 1 commit into
mainfrom
fix/drag-event-qt-version
Nov 7, 2026
Merged

blocksmith314 merged 1 commit into
mainfrom
fix/drag-event-qt-version

Conversation

@blocksmith314

Copy link
Copy Markdown
Owner

Summary

The drag-and-drop test used the QDragEnterEvent(QPointF, ...) constructor, which only exists in Qt 6.9+. Ubuntu 24.04 ships Qt 6.4, so the Linux CI build failed after #51.

Guard it with QT_VERSION and use the QPoint constructor on older Qt.

Verification

  • Local build and ctest: 62/62 pass.
  • ./test/tools/tidy.sh test/test_gui.cpp: 0 issues.
  • Linux CI will verify the Qt 6.4 path.

Ubuntu 24.04 ships Qt 6.4, which only has the QPoint constructor; guard the QPointF overload with QT_VERSION.
@blocksmith314
blocksmith314 merged commit 5a4d041 into main Nov 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant