Skip to content

ENH: Prepare for qt6 #93

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

Open
wants to merge 4 commits into
base: patched-v3.6.1-2025-06-13-a2687828e
Choose a base branch
from

Conversation

hjmjohnson
Copy link

These are code changes that were identified while building for Qt6 support. These are cherry-picked fixes from
a larger effort to get Qt6 support that will be abandoned.

PythonQt/generator/parser/name_compiler.cpp:111:46: \
    warning: 'count' is deprecated: Use size() or length() instead.
    [-Wdeprecated-declarations]
@hjmjohnson
Copy link
Author

@jcfr These are the most valuable code recommendations from MeVisLab/pythonqt#269. I am going to make separate PR's for these in the upstram MeVisLab repo.

Add specific framework path handling

Refactor include directory parsing to support multiple candidate paths
for headers and introduce macOS-specific logic for resolving
framework-relative header paths. Enhance generator flexibility and
robustness for cross-platform usage.

Push upstream fix via:
danmar/simplecpp#448
Replace with backward compatible recommended or
preprocessor conditional for old and new.

Use new paradigms that are backward compatible
when possible.

Use preprocessor conditionals where the syntax
is different between qt5 and qt6.
…er versions

Py_HashPointer() is not available in Python 3.12.
It was only added to the public C-API in Python 3.13 (see the “What’s New in 3.13” notes)

Release
Status of a pointer-hash helper
≤ 3.12
Only the private, internal function _Py_HashPointer() exists. It is not exported in the limited- or stable-ABI headers and may disappear or change without notice.
3.13+
Py_HashPointer(const void *ptr) becomes a public API entry in <Python.h>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant