В фреймворке PyQt (и PySide тоже) часто встречается настройка чего-либо с помощью так называемых флагов.
widget.setWindowFlags(Qt.Window)
Взаимодействие нескольких флагов делается с помощью бинарных (или побитовых) операторов.
Несколько флагов можно указать с помощью оператора "|"
list_item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled)
исключить флаг из уже имеющегося набора можно так
list_item.setFlags(list_item.flags() ^ Qt.ItemIsEnabled)
Добавить новый флаг к имеющимся можно так
list_item.setFlags(list_item.flags() | Qt.ItemIsEnabled)
А проверка наличия делается так
is_enabled = item.flags() & Qt.ItemIsEnabled > 0
Почему именно так? Всё дело в том как именно работают побитовые операторы. Но об этом в следующем посте.
#qt
#EvolutionX#UNOFFICIAL#A16#diting#qpr1
EvolutionX 11.5.1 | UNOFFICIAL | Android 16
Updated: 28/12/2025
▪️Download: SF | Mirror
▪️Screenshots
▪️Support:Group
▪️ Recovery: here
Changelogs:
• Sync soruce
• Update blobs and firmware from OS2.0.205.0.VLFMIXM
• Xiaomi camera has been updated
• Updated kernel and some fixes
• Many optimizations and fixes were made.
• Dolby audio by default
• Update KernelSU
Notes:
If you want to receive regular updates, you can donate and we will add you to VIP support.
Credits:Here
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
#EvolutionX#UNOFFICIAL#A16#diting#qpr1
EvolutionX 11.5 | UNOFFICIAL | Android 16
Updated: 18/11/2025
▪️Download: SF | Mirror
▪️Screenshots
▪️Support:Group
▪️ Recovery: here
Changelogs:
• Initial release qpr1
• TEST BUILD
• Dolby audio by default
• KernelSU SusFS support
Notes:
If you want to receive regular updates, you can donate and we will add you to VIP support.
Credits:Here
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
#PixelOS#UNOFFICIAL#A16#diting#qpr1
PixelOS 16.1 | UNOFFICIAL | Android 16
Updated: 28/12/2025
▪️Download: SF | Mirror
▪️Support :Group
▪️Source Changelogs: here
Changelogs:
• Initial release
Notes:
If you want to receive regular updates, you can donate and we will add you to VIP support.
Credits:Here
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
Evolution X - Official | Android 16 | Nothing Phone (2)
📝 Details:
- Version: v11.5.2
- Device: #Pong
- Released: 03/02/26
⬇️ Download: Gapps | Vanilla
🛟 Recovery: Here
📖 Changelogs: Here
🆘 Support: Discord | Telegram
🏷 Tags: #AOSP#ROM#EvoX#Official#QPR1
✍️Notes:
- Firmware is included! (NOS 4.0)
- Sideloading/USB in recovery works as intended now
- Gapps is included, do not flash again
- Dolby is included
🏆Credits:
- Ghost and Chandu for DT
- Fabian & Ghost & HELLBOY for Glyph
- HELLBOY for Kernel base
👤 Maintainer: @Superuser1958
💬 Chat: @NothingPhone2
🔔 Updates: @NothingPhone2Updates
Evolution X - Official | Android 15 | Nothing Phone (2)
📝 Details:
- Version: v10.3
- Device: #Pong
- Released: 22/02/25
⬇️ Downloads: ROM | Recovery Image
⚙️ Flashing Instructions: Here
📖 Changelogs: Here
🆘 Support: Here
🏷 Tags: #AOSP#ROM#QPR1#EvoX#Official
✍️Notes:
- Gapps is included, do not flash again!
- Firmware is included
- Dolby is included
🏆Credits:
- Chandu for base DT
- Ghost for Dolby and additional fixes
- Fabian & HELLBOY for Glyph
- HELLBOY for Meteoric Kernel
👤 Maintainer: @Superuser1958
🐙 Chat @NothingPhone2
🔔 Updates @NothingPhone2Updates
#EvolutionX#UNOFFICIAL#A16#diting#qpr1#Beta
EvolutionX 11.5 | UNOFFICIAL | Android 16
Updated: 28/11/2025
▪️Download: SF | Mirror
▪️Screenshots
▪️Support:Group
▪️ Recovery: here
Changelogs:
• Sync soruce
• The Xiaomi camera has been updated and added by default.
• The kernel has been updated and some new changes have been made.
• Some minor changes were made to the tree.
• Dolby audio by default
• KernelSU SusFS support
CLEAN FLASH RECOMMENDED
Notes:
If you want to receive regular updates, you can donate and we will add you to VIP support.
Credits:Here
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat