Skip to content

Fix wrapper build error with Qt 6.12: QXmlStreamEntityResolver::resolveEntity is final - #376

Open
lassoan wants to merge 1 commit into
MeVisLab:mainfrom
lassoan:fix-qt612-xmlstreamentityresolver
Open

lassoan wants to merge 1 commit into
MeVisLab:mainfrom
lassoan:fix-qt612-xmlstreamentityresolver

Conversation

@lassoan

@lassoan lassoan commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Qt 6.12 declares QXmlStreamEntityResolver::resolveEntity() as final. It is an internal function that only reserves a vtable slot and is not called anywhere. Because of this, the generated shell class fails to compile:

error C3248: 'QXmlStreamEntityResolver::resolveEntity': function declared as 'final' cannot be overridden by 'PythonQtShell_QXmlStreamEntityResolver::resolveEntity'

This change removes the function from the wrappers for Qt >= 6.12. The behavior for earlier Qt versions is unchanged.

Tested by regenerating the wrappers and building PythonQt against Qt 6.12.0 (MSVC 2022, Windows), as part of a 3D Slicer build.

…veEntity is final

Qt 6.12 declares QXmlStreamEntityResolver::resolveEntity() as final
(it is an internal function that just reserves a vtable slot), so the
generated shell class failed to compile:

  error C3248: 'QXmlStreamEntityResolver::resolveEntity': function
  declared as 'final' cannot be overridden by
  'PythonQtShell_QXmlStreamEntityResolver::resolveEntity'

Remove the function from the wrappers for Qt >= 6.12.

This branch has not been deployed

No deployments
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.

2 participants