В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны.
Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2.
Например, в PyQt4 и PySide есть метод
QHeaderView.setResizeMode
Для PyQt5 и PySide2 они были благополучно переименованы в
QHeaderView.setSectionResizeMode
Чтобы применить этот метод следует использовать такой код
from Qt import QtCompath
header = self.horizontalHeader()
QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed)
Унификация загрузки UI файлов:
# PySide2
from PySide2.QtUiTools import QUiLoader
loader = QUiLoader()
widget = loader.load(ui_file)
# PyQt5
from PyQt5 import uic
widget = uic.loadUi(ui_file)
# Qt.py
from Qt import QtCompat
widget = QtCompat.loadUi(ui_file)
Хорошо что таких моментов не много и их легко запомнить.
Полный список можно посмотреть в таблице.
#qt#tricks
🚀Netflix Game Fest 2026 da ishtirok etadi! 🎮🔥
Yirik yangilik! Netflix Game Fest 2026 doirasida global o‘yin sanoatiga oid yangi loyihalar, eksklyuziv taqdimotlar va innovatsion yechimlar namoyish etadi. 🌍✨
Bu tadbir o‘yin industriyasi, kreativ texnologiyalar va interaktiv kontent sohasidagi eng so‘nggi yangiliklarni bir maydonga jamlaydi.
🎯Nimalar kutilmoqda?
🔥 Yangi o‘yin loyihalari taqdimoti
🎨 Kreativ hamkorliklar va eksklyuziv e’lonlar
💡 Gamedev bo‘yicha innovatsion yondashuvlar
🤝 Global hamkorlar va ishlab chiquvchilar bilan uchrashuvlar
Netflix’ning Game Fest 2026 dagi ishtiroki o‘yin sanoatida yangi bosqichni boshlab berishi kutilmoqda.
🎉 Batafsil yangiliklarni kuzatib boring!
🚀
Netflix
to Participate in Game Fest 2026! 🎮🔥
Big news! Netflix will take part in
Netflix Game Fest 2026
, showcasing new gaming projects, exclusive announcements, and innovative solutions in the global gaming industry. 🌍✨
This major event will bring together the latest trends in gaming, creative technologies, and interactive entertainment on one global stage.
🎯
What to Expect:
🔥 Presentations of new game projects
🎨 Creative collaborations and exclusive reveals
💡 Innovative approaches in game development
🤝 Networking with global partners and developers
Netflix’s participation in Game Fest 2026 is expected to mark an exciting new chapter in the gaming industry.
🎉 Stay tuned for more updates!
#Netflix#GameFest2026#GameDev#GamingIndustry
COMING SOON: Fishy Business! 🐟💰
Deep below the waves, Marlin Brando runs a tight ship! His latest venture, FISHY BUSINESS, offers nothing but the best in speakeasy casino vibes, and it's COMING SOON!
This exciting game features the Hold n Win feature, offering a jackpot potential of up to x5000. The Bassline Bonanza Free Spins introduce a giant symbol that occupies reels 2, 3, and 4, adding to the thrill with a max win potential of x5000.
A high-stakes underwater adventure is approaching. Fishy Business launches on August 22nd!
#FishyBusiness#ComingSoon#SlotGame#GamingIndustry#TrueLab#TrueSlots#TrueGames
🔞 | Play Responsibly
🔥BOMBA YANGILIK!
Mobidictum Toshkentga kelmoqda! ✈️🇺🇿
O‘yin sanoatining global "o‘yinchisi" Mobidictum endi Game Fest 2026 doirasida biz bilan bo‘ladi.
🎮O‘yin yaratyapsizmi?
📈Loyihangizni sotmoqchimisiz?
💰Investor qidiryapsizmi?
Unda 15-16 may kunlari
Renaissance Hall'ga kelish shart! Bu imkoniyat yilda bir marta, balki hayotda bir marta beriladi.
🚀Game Fest 2026 — O‘z orzuingni dunyoga ko‘rsat!
Maslahat: Postga Mobidictum logotipi va Game Fest 2026 ramzlari tushirilgan sifatli kreativ (poster) qo‘shishni unutmang.
—————————
🚀 BIG NEWS!
Mobidictum is coming to Tashkent!✈️🇺🇿
The global powerhouse of the gaming industry, Mobidictum, is officially joining us at Game Fest 2026!
🎮Are you developing a game?📈Want to pitch your project to global publishers?💰Looking for the right investor? Then Renaissance Hall is the place to be on May 15-16! This is a once-in-a-lifetime opportunity to connect with one of the most influential gaming ecosystems in the world.
What to expect from Mobidictum at Game Fest: * Global Networking: Connect with world-class publishers and experts.
• Market Insights: Learn the secrets of scaling your game to the global top charts.
• Investment Opportunities: Show your talent to those who can take it to the next level.
Don't miss out on the biggest gaming event in the region!
🚀Game Fest 2026 — Show your dream to the world!#GameFest2026#Mobidictum#Tashkent#GameDev#GamingIndustry#Uzbekistan#GlobalGaming#Networking
Ripstone Secures $761.71K Funding
Game development studio Ripstone has raised $761.71K in funding, aiming to enhance their projects and expand their offerings. More information can be found on their official website: Ripstone.
#Ripstone#Games#Funding#GameDevelopment#Investment#Studio#VideoGames#IndieGames#GamingIndustry#GameDesign