Port GUI to Qt6/qtpy>=2.4 and PyQt6: replace deprecated Qt enums/APIs and update deps - #572
Closed
axelvonkamp wants to merge 1 commit into
Closed
Port GUI to Qt6/qtpy>=2.4 and PyQt6: replace deprecated Qt enums/APIs and update deps#572axelvonkamp wants to merge 1 commit into
axelvonkamp wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
Qt.*enum usages with the Qt6-style names such asQt.GlobalColor.*,Qt.CursorShape.*,Qt.Key.*,Qt.MouseButton.*,Qt.KeyboardModifier.*,Qt.ApplicationAttribute,Qt.ColorRole/QPalette.ColorRole,QPalette.ColorGroup,QFrame.Shape/QFrame.Shadow, and related enum classes across multiple GUI modules.QHeaderView.ResizeMode,QAbstractItemView.SelectionMode,QTableWidget.setEditTriggerswithEditTrigger,QCompleter.CompletionMode,QMenu.execreplacement forexec_,QDialog.execforexec_).QMessageBoxicon and button constants withQMessageBox.Icon.*andQMessageBox.StandardButton.*where appropriate.CursorShapeenums and switched severalexec_()calls toexec()for Qt6 compatibility.qthigh DPI attribute setting to useQt.ApplicationAttributelookups to remain safe under Qt5/Qt6.environment.ymlandpyproject.tomlto requireqtpy>=2.4,pyqt6>=6.8/pyqt6-webengine, andqtconsole>=5.6(and matching webengine entries) to match the API changes.application.py,appdata.py,core_gui.py, numerous files undergui_elements/,utils.py, and more) to modernize enum uses and API calls.Testing
Codex Task