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

QObjectUserData was removed in Qt 5.14 #9

Open
magiruuvelvet opened this issue May 18, 2020 · 0 comments
Open

QObjectUserData was removed in Qt 5.14 #9

magiruuvelvet opened this issue May 18, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@magiruuvelvet
Copy link
Owner

The alternative PROPERTY uses QVariant which doesn't support raw pointers. 😭 The undocumented USERDATA used raw pointers which were a nice hack to transfer data between unrelated functions and objects.

/usr/include/qt5/QtCore/qvariant.h:497:12: note: 'QVariant' has been explicitly marked deleted here
    inline QVariant(void *) = delete;

Just replacing all function calls didn't went so well. To fix this issue I need an additional layer of wrapping the pointer into a class and use that for QVariant.

This is what you get for using undocumented private APIs -> pain and suffering.

@magiruuvelvet magiruuvelvet added the bug Something isn't working label May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant