В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
🌍 Earth Day x Tkong | Walking with the Earth
We believe that every action should be rooted in respect for nature.
Tkong is deeply committed to our shared home—Earth.
🌀 The image seen here reflects the natural elements within the Tkong logo—oceans, forests, and mountains, all part of our planet.
#EarthDay2025#Tkong#EnvironmentalProtection#EarthDay#WalkingWithTheEarth
⚠️ AIR POLLUTION IS A SERIOUS CONCERN!
In Quvasoy city, Do‘stlik residential area, the 82-KMK reinforced concrete products manufacturing plant is releasing toxic gases and other harmful substances into the atmosphere on a daily basis.
This situation poses a real threat to public health and the environment. Under the current circumstances, a legitimate question arises:
❓ How lawful and acceptable is such activity today?
We, as members of the public, respectfully but firmly request:
🔹 a thorough investigation of these emissions,
🔹 verification of whether the enterprise operates in full compliance with environmental and sanitary legislation,
🔹 and the adoption of appropriate measures if violations are identified.
🟢 Clean air is not a privilege — it is a fundamental right of every citizen.
🟢 Public health must take precedence over industrial interests.
Responsible authorities should not remain indifferent.
The public will continue to monitor this situation closely.
#AirPollution
#Quvasoy
#Dostlik
#Environment
#PublicHealth
#EnvironmentalProtection☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot
Instagram | Facebook | Twitter | Sayt | Youtube.
Central Asian Ecologists and Eco-Activists Forum at Green University
🔴On April 8, 2026, Green University hosted the Central Asian Forum of Ecologists and Eco-Activists on "Legal Mechanisms for Environmental Protection" in partnership with ‘Yuksalish’ Movement.
The forum brought together policymakers, legal experts, environmental specialists, and eco-activists from Uzbekistan and Kazakhstan to discuss evolving environmental policies, law enforcement practices, green urban development, and public participation in decision-making. Experts from Kazakhstan shared insights on Aarhus Convention mechanisms, urban air quality, and eco-startups.
🗣The event featured panel discussions, open debates, and concluded with the presentation of a draft Final Resolution to strengthen environmental governance and legal protection.
#GreenUniversity#EcoForum#Sustainability#EnvironmentalProtection
👉ReadMore _________________
Green University’da Markaziy Osiyo ekologlari va eko-faollari forumi bo‘lib o‘tdi
🔴2026-yil 8-aprel kuni Green University'da “Yuksalish” Harakati bilan hamkorlikda "Atrof-muhitni muhofaza qilishning huquqiy mexanizmlari" mavzusida Markaziy Osiyo ekologlari va eko-faollar forumi bo‘lib o‘tdi.
Forum O‘zbekiston va Qozog‘istondan kelgan siyosatchilar, huquqshunoslar, atrof-muhit bo‘yicha mutaxassislar va eko-faollarni birlashtirib, atrof-muhit siyosatining rivojlanishi, qonun ijrosi amaliyotlari, yashil shaharlarni rivojlantirish va qaror qabul qilish jarayonida fuqarolik ishtiroki masalalarini muhokama qilish imkonini berdi. Qozog‘istonlik ekspertlar Aarhus Konventsiyasi mexanizmlari, shahar havosining sifati va eko-startaplar bo‘yicha o‘z tajribalari bilan o‘rtoqlashdi.
🗣Tadbir panel muhokamalari va ochiq munozaralar bilan o‘tkazilib, atrof-muhit boshqaruvini va huquqiy himoyani mustahkamlashga qaratilgan yakuniy qaror loyihasining taqdimoti bilan yakunlandi.
#GreenUniversity#EcoForum#Barqarorlik#AtrofMuhitniMuhofazaQilish
👉Batafsil
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
Air Quality Assessment in Termez 2025: Toward Cleaner Air and Clearer Skies
🔴On December 16, 2025, Green University, together with UNEP and the Finnish Meteorological Institute, presented the results of the air quality assessment in Termez. The event brought together government representatives, experts, development partners, media, and civil society.
🔴The assessment, conducted at the request of the National Committee on Ecology and Climate Change of Uzbekistan, was based on data from the first automatic reference air monitoring station installed in Termez in 2024 with the support of the Zamin Foundation. The study identified key pollution sources and provided science-based recommendations to improve air quality.
🔴The discussion also covered new air quality management strategies, including the work of Uzhydromet and youth-focused environmental initiatives by the Zamin Foundation.
#AirQuality#CleanAir#Termez#Uzbekistan#GreenUniversity#UNEP#FMI#ClimateAction#EnvironmentalProtection
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
Memorandum Signed Between Green University and “Yuksalish” Movement
Within the framework of the Central Asian Forum of Ecologists and Eco-Activists, a Memorandum of Understanding was signed between Green University and “Yuksalish” Movement.
💬The document outlines cooperation in organizing environmental forums, conducting sociological and environmental surveys, supporting innovative startups, and engaging students in volunteer activities.
💬The parties also agreed to expand collaboration through joint research, as well as seminars and conferences.
#GreenUniversity#Yuksalish#MemorandumOfUnderstanding#EcoForum#EnvironmentalProtection#Cooperation
👉ReadMore ________________
Green University va “Yuksalish” Harakati o‘rtasida memorandum imzolandi
Markaziy Osiyo ekologlari va eko-faollari forumi doirasida Green бUniversity va “Yuksalish” Harakati o‘rtasida O‘zaro anglashuv memorandumi imzolandi.
💬Mazkur hujjat ekologlar forumlarini tashkil etish, sotsiologik va ekologik so‘rovlar o‘tkazish, innovatsion startaplarni qo‘llab-quvvatlash hamda talabalarni volontyorlik faoliyatiga jalb etishni nazarda tutadi.
💬Shuningdek, tomonlar qo‘shma ilmiy tadqiqotlar, seminarlar va konferensiyalar orqali hamkorlikni kengaytirishga kelishib oldi.
#GreenUniversity#Yuksalish#Memorandum#EcoForum#AtrofMuhit#Hamkorlik
👉Batafsil
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube