Для тех кто пишет расширения на PyQt/PySide для CG-софтов.
Когда я только начинал писать тулзы под Maya (тогда еще версия 2010-2011) мне приходилось ручками ставить PyQt4 под Maya. Даже написал мануалы по установке на своём сайте. Но потом стал доступен из коробки PySide и позже он обновится до PySide2. Для некоторых систем была поддержка PyQt5.
И как простому разработчику поддерживать этот зоопарк? Ведь хочется чтобы тул работал на любой версии (вы тоже делали модуль что-то типа import_qt.py?😁)
На помощь приходит проект Qt.py который поставил себе цель унифицировать использование Qt-биндингов вне зависимости от среды где запускается код. Те, кто давно пишут на Qt, скорее всего знают этот проект.
Он стал стандартом для CG-индустрии и используется в топовых студиях и проектах.
Qt․py помогает запускать один и тот же код на разных платформах с разными вариантами Qt-библиотек. Это может быть как интеграция в CG-софт, так и переносимость стендалонов между разными платформами с разными версиями Python.
Я решил рассказать о некоторых особенностях работы с этой библиотекой.
Сегодня о том, как установить и использовать Qt․py и что это вам даёт.
Установка
pip install Qt.py
Чтобы начать использовать Qt․py в коде достаточно заменить импорт вашего варианта Qt-биндинга на Qt․py
from [PySide|PyQt4|PySide2|PyQt5] import QtWidgets
=>
from Qt import QtWidgets
Теперь ваш код будет поддерживать любой вариант биндинга Qt в Python.
При этом не потребуется использовать if-else конструкции под разные версии. Все вызовы теперь одинаковы.
Всё что нужно сделать, это написать его по правилам PySide2. Именно эта версия была взята за основу.
Приоритет импорта такой:
1. PySide2
2. PyQt5
3. PySide
4. PyQt4
Что именно загрузилось можно посмотреть в переменной __binding__
>>> import Qt
>>> Qt.__binding__
'PySide2'
Приоритет имопрта можно изменить через переменные QT_PREFERRED_BINDING и QT_PREFERRED_BINDING_JSON. Причем под каждый проект оверрайды можно настраивать индивидеально.
#qt#libs
NeotericOS - CLO | Android 15 | Nothing Phone (2)
✍️Details:
- Version: 15
- Device: #Pong
- Released: 08/02/25
🔽 Download : ROM (Sideload) | Recovery
🆘 Support Group : Here
🔖 Tags : #Neoteric#V#CLO#ROM
✨Changelogs:
• Updated to jan sec patch
• Fixed an issue where alarm volume region was not touchable in volume panel
• New brightness slider UI in QS
• Updated play integrity fp
• New aptx preferences UI (i can't remember if this was rolled out before)
📔 Notes:
- Sideload using provided recovery only.
- NOS 3.0 FW is recommended.
- Meteoric Kernel with pre-patched KSU is included!
👤 Dev : @HELLBOY017
🔔 Updates : @NothingPhone2Updates
🐙 Chat : @NothingPhone2
Neoteric OS | Android 15 | Nothing Phone (2)
✍️Details:
- Version: 15
- Device: #Pong
- Released: 25/12/2024
🔽 Download : [ Sourceforge (Recovery) | Fastboot ] Build
⚙️ Installation: Here
🆘 Support Group : Here
🔖 Tags : #Neoteric#V#CLO#ROM
✨Changelog:-
• Merged clo system tag:- LA.QSSI.15.0.r1-13000-qssi.0
• Merged clo vendor tag:-
LA.VENDOR.14.3.0.r1-18400-lanai.QSSI15.0
• Performance improvements in display hal
• QS expand boost (should fix qs lag)
• Use scalable grids in launcher (for less than 5 column grids)
• Fix lens button crash in launcher search bar
• Add circle to search toggle in launcher
• More haptics improvements
• Material3 switches for screen record options
• Dexopt improvements
✍️ Note:
- FW Required: NOS 2.6 / 3.0
- OTA has been pushed for users on previous build soon
- Use Neoteric recovery for sideloading
🏆Credits:
- Neoteric OS Team
- Testers who helped all throughout
😎 Dev : @HELLBOY017
🔔 Updates : @NothingPhone2Updates
🐙 Chat : @NothingPhone2
Neoteric OS | Android 15 | Nothing Phone (2)
✍️Details:
- Version: 15
- Device: #Pong
- Released: 11/12/2024
🔽 Download : Sourceforge
⚙️ Installation: Here
🆘 Support Group : Here
🔖 Tags : #Neoteric#V#CLO#ROM
Changelog:-
* Fix edge light custom color not applying
* Update fingerprint to pass device integrity
* Add haptics to more elements
* Fix crash after enrolling fp if face unlock is enabled
* Performance enhancements
* Fix package cache related issues
* Add overview scale animation in recents
* Redesign Settings page
🏆Credits:
- Neoteric OS Team
- Testers who helped all throughout
😎 Dev : @HELLBOY017
🔔 Updates : @NothingPhone2Updates
🐙 Chat : @NothingPhone2
Neoteric OS | Android 15 | Nothing Phone (2)
📔 Details:
- Version: 15
- Device: #Pong
- Inital Release : 06/12/24
🔽 Download : Sideload | Fastboot
⚙️ Installation: Here
🆘 Support Group : Here
🔖 Tags : #Neoteric#V#CLO#ROM
⚙️ Changelogs:
- OTA updates via system would be pushed with future releases by the maintainer. Refer to changelogs from support chat.
✍️ Note:
- Sideload via Neoteric Recovery for recovery build. Else use fastboot one
- If you are facing any issues with booting fastboot build, flash super empty > fastboot -w > fastboot update <path to rom.zip>
- Users on older build can update via in built system ota updater
🏆 Credits:
- Neoteric OS Team
- Testers who helped all throughout
😎 Dev : @HELLBOY017
🔔 Updates : @NothingPhone2Updates
🐙 Chat : @NothingPhone2
Neoteric OS | Android 14 | Nothing Phone (2)
✍️Details:
- Version: 14
- Status: #Official
- Device: #Pong
- Released: 07/09/2024
🔽Download :Fastboot Build | Mirror
⚙️Installation: Here
🆘Support Group :Here
🔖Tags :#Neoteric#U#CLO#ROM
✍️ Note:
• Final A14 stable release. Next build will be based on A15
• This build has been tested over months and isnow ready for public usage
🏆Credits:
- AOSPA team for DT
- Neoteric OS Team
- Testers who helped all throughout
😎Dev : @HELLBOY017
🔔Updates : @NothingPhone2Updates
🐙Chat : @NothingPhone2
Neoteric OS - CLO | Android 15 | Nothing Phone (2)
✍️Details:
- Version: 15
- Device: #Pong
🔽 Download : Here | Mirror
⚙️ Installation: Here
🆘 Support Group : Here
📔 Changelogs: Here
💰 Donate: Here
🔖 Tags : #Neoteric#V#CLO#ROM#Official
✍️ Note:
- Adb sideload via the linked neoteric recovery linked only!
- Clean flashing is mandatory for first installation. Dirty flashing is possible for manual updation though.
- OTA Updates are supported.
- Latest stock firmware is recommended.
- If you face Error Applying update: 7 (ErrorCode: kInstallDeviceOpenError) flash super_empty from bootloader mode using the cmd: fastboot wipe-super super_empty.img
- This will serve as a standalone post for all upcoming releases for this rom.
🏆 Credits
- Neoteric OS Team
- Testers who helped all throughout.
👤 Dev : @HELLBOY017
🔔 Updates : @NothingPhone2Updates
🐙 Chat : @NothingPhone2
Neoteric OS - CLO | Android 16 | Nothing Phone (2) [EOL]
✍️Details:
- Version: 4.0 based on A16
- Device: #Pong
🔽Download : Fastboot Build
⚙️Installation: Here
🆘Support Group : Here
💰Donate: Here
🔖Tags : #Neoteric#CLO#ROM#bka
📔Changelog:
- Last update
- Fixed up keybox spoofing so that payzapp works
✍️Note:
- Latest stock firmware is recommended.
- ROM ships with Meteoric Kernel (KSUN + SUSFS) out of box.
- Install cmds:
fastboot update -w : for clean
fastboot update : for normal
- OTA Updates are supported.
- If you face Error Applying update: 7 (ErrorCode: kInstallDeviceOpenError) flash super_empty from bootloader mode using the cmd: fastboot wipe-super super_empty.img
🏆Credits
- Neoteric OS Team
- Testers who helped all throughout.
👤Dev : @HELLBOY017
🔔Updates : @NothingPhone2Updates
🐙Chat : @NothingPhone2
Neoteric OS - CLO | Android 16 | Nothing Phone (2)
✍️Details:
- Version: 4.0 based on A16
- Device: #Pong
🔽 Download : Fastboot Build | Mirror
⚙️ Installation: Here
🆘 Support Group : Here
💰 Donate: Here
🔖 Tags : #Neoteric#CLO#ROM#Official#bka (Baklava)
📔 Changelogs:
- LA.QSSI.16.0.r1-07300-qssi.0
✍️ Note:
- Latest stock firmware is recommended.
- ROM ships with Meteoric Kernel (KSUN + SUSFS) out of box.
- For recovery based builds sideloading via the linked neoteric recovery linked only! OFOX won't work!
- Install cmds:
fastboot update -w : for clean
fastboot update : for normal
- OTA Updates are supported.
- If you face Error Applying update: 7 (ErrorCode: kInstallDeviceOpenError) flash super_empty from bootloader mode using the cmd: fastboot wipe-super super_empty.img
- This will serve as a standalone post for all upcoming releases for this rom.
🏆 Credits
- Neoteric OS Team
- Testers who helped all throughout.
👤 Dev : @AbhayGill017
🔔 Updates : @NothingPhone2Updates
🐙 Chat : @NothingPhone2