Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue in QT5.X #3

Closed
Linloir opened this issue Dec 5, 2021 · 3 comments
Closed

Build issue in QT5.X #3

Linloir opened this issue Dec 5, 2021 · 3 comments

Comments

@Linloir
Copy link
Owner

Linloir commented Dec 5, 2021

QEnterEvent & globalPosition() cause building issues in QT version below 6

@Linloir
Copy link
Owner Author

Linloir commented Dec 5, 2021

Changing QEnterEvent -> QEvent & changing globalPosition() -> globalPos() will fix the problem ;P

@Linloir Linloir closed this as completed Dec 5, 2021
@Linloir Linloir pinned this issue Dec 8, 2021
@wineee
Copy link

wineee commented Dec 8, 2021

Maybe you need:

#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
    a->globalPos();
#else
    a->globalPosition();
#endif

@Linloir
Copy link
Owner Author

Linloir commented Feb 25, 2022

Maybe you need:

#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
    a->globalPos();
#else
    a->globalPosition();
#endif

nice suggestion, adopted XD

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

No branches or pull requests

2 participants