Skip to content

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