Skip to content

Conversation

@eduardoChaucaGallegos
Copy link
Contributor

@eduardoChaucaGallegos eduardoChaucaGallegos commented Jan 5, 2026

This pull request removes legacy Qt4-specific code and updates PySide2 compatibility, simplifying the codebase and improving maintainability. The main changes involve eliminating conditional logic for Qt4 and updating method signatures to match current PySide2/Qt5 APIs.

Qt4-specific code removal:

  • Removed conditional calls to show() and moveToThread() that were only needed for Qt4 compatibility in login_dialog.py and async_bootstrap.py. This reduces complexity and prevents issues in Qt5/PySide2 environments. [1] [2]

PySide2/Qt5 API updates:

  • Updated the translate method in pyside2_patcher.py to remove the deprecated encoding argument, ensuring compatibility with PySide2/Qt5 and aligning with the latest API expectations.

Copy link
Member

@julien-lang julien-lang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not break retro-compatibility with current TK component versions that would use this "future" tk-core version and would break because the setCodecForCStrings method would no longer exist.

We can always add a deprecation warning when this is used and create a follow up ticket to handle long term compatibility break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants