# Migrated from PyQt5 to PyQt6/PySide6. #
This week, our focus was on porting the UI framework of the AGL Demo Control Panel from Qt5 to Qt6. The migration process was relatively straightforward since the syntax changes between PyQt5 and PyQt6 are minimal.
# Patched Animated Toggle Module to work with PyQt6. #
In the previous version of the Control Panel, we relied on the ‘qtwidgets’ module to render animated toggle switches. However, this package did not support PyQt6 out of the box. To address this, I extracted the relevant module and patched it to work with the Qt6 framework. Instead of relying on qtpy (a Python library that abstracts various Qt APIs), we now use native PyQt6 components.
# Updated the README. #
I also updated the README file to include new instructions for compiling the PyQT6 resources. While this change was minor, I still need to update other instructions to fully reflect recent modifications.
# Conclusion #
All the code changes have been pushed to Gerrit. Additionally, We’ve created a new JIRA issue to track this year’s contributions under GSoC 2024.
- Gerrit: 29969: Port AGL Demo Control Panel to Qt6
- JIRA: SPEC-5161 - GSoC: Extend AGL Demo Control Panel
# What Next? #
- Implement improved UX/UI.
- Utilize CARLA APIs for recording and playback sessions.
- Discuss the CARLA server setup intent with mentors.