Skip to content

Port to PyQt6#3876

Open
bgermann wants to merge 4 commits intoLinuxCNC:masterfrom
bgermann:pyqt6
Open

Port to PyQt6#3876
bgermann wants to merge 4 commits intoLinuxCNC:masterfrom
bgermann:pyqt6

Conversation

@bgermann
Copy link

This is a completely mechanical conversion from PyQt5 to PyQt6. This is not tested to run successfully yet.

Drop the optional popplerqt5/python3-poppler-qt5 dependency and the
associated LIB_BAD guard. Use QPdfDocument from PyQt6.QtPdf instead,
which ships as part of PyQt6 itself.

Rendering now uses QPdfDocumentRenderOptions with Antialiasing and
TextAntialiasing flags set, preserving the render quality of the
original poppler-based code.

Other PyQt6 migration changes:
- app.exec_() replaced with app.exec()
- pageCount()/pagePointSize()/render() replace
  numPages()/page()/renderToImage()
@Sigma1912
Copy link
Contributor

This is not tested to run successfully yet.

In that case you might want to mark this PR as 'Draft''

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