В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
Universitetimizda Harvest Festivali bo‘lib o‘tdi.
Bugun Al-Xorazmiy universitetida mehnat, baraka va qadriyatlar ifodasi Harvest Festivali ko‘tarinki ruhda o‘tkazildi.
🍇 Talabalarimiz tomonidan tayyorlangan milliy taomlar, ijodiy ishlanmalar, jonli musiqalar va qiziqarli ko‘ngilochar dasturlar festivalga yanada fayz qo‘shdi. 🎶
✨ Professor-o‘qituvchilarimiz ham talabalar bilan birga turli o‘yinlarda faol ishtirok etib, bayramga yanada samimiyat bag‘ishladilar.
Tadbir do‘stlik, birdamlik va ezgu qadriyatlarimizni mustahkamlashga xizmat qilishi shubhasiz.
🔁English
➖➖➖➖➖➖➖
#HarvestFestival#TalabalarHayoti
Bizning ijtimoiy tarmoqlarimiz:
Veb-sayt | Telegram | Instagram | Facebook | Aloqa-bot
Youth Day Celebrations Held at Green University
⚪️A series of events dedicated to Youth Day was held at Green University, bringing students together for a day of learning and engagement.
🧑🎓The program included a motivation workshop, English classes for local children, a “Book Brain” presentation, the “Zakovat” intellectual game, and a specialized workshop on waste management for law students. The day concluded with sports activities promoting a healthy lifestyle.
#GreenUniversity#YouthDay#StudentLife#Zakovat#SustainableDevelopment#ActiveYouth
👉ReadMore
________________________
Green University’da Yoshlar kuniga bag‘ishlangan tadbirlar o‘tkazildi
⚪️Green University’da Yoshlar kuni munosabati bilan bir qator tadbirlar tashkil etilib, talabalar uchun mazmunli va samarali kun tashkil etildi.
🧑🎓Dastur doirasida motivatsiya bo‘yicha trening, mahalliy bolalar uchun ingliz tili mashg‘ulotlari, “Book Brain” loyihasi taqdimoti, “Zakovat” intellektual o‘yini hamda huquqshunoslik yo‘nalishi talabalari uchun chiqindilarni boshqarish mavzusida maxsus seminar o‘tkazildi. Kun yakunida sog‘lom turmush tarzini targ‘ib qiluvchi sport tadbirlari tashkil etildi.
#GreenUniversity#YoshlarKuni#TalabalarHayoti#Zakovat#BarqarorRivojlanish#FaolYoshlar
👉Batafsil
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
Highlights from the Youth Day at Green University.
#GreenUniversity#YouthDay#StudentLeague#TeamSpirit#Leadership
__________________________
Green University Yoshkar kunidan lavhalar.
#GreenUniversity#YoshlarKuni#TalabalarLigasi#TalabalarHayoti#Jamoaviylik#Liderlik
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
📌On April 9, Green University actively celebrated Youth Day with a dynamic and engaging program that brought together students, faculty, and administration.
🗣️Throughout the day, participants took part in a wide range of activities — from educational workshops and intellectual games to open lectures and cultural events. The atmosphere was vibrant, reflecting the energy, enthusiasm, and ambition of the youth.
A special highlight was the opening of the Student League sports competitions, where the university rector, Dr. Bakhtiyor Pulatov personally took part alongside students. His participation made the event even more inspiring, strengthening the spirit of unity, teamwork, and friendly competition.
✅Youth Day at Green University once again proved that the university is not only a center of education, but also a space where students actively develop, engage, and succeed together.
#GreenUniversity#YouthDay#StudentLeague#StudentLife#TeamSpirit#Leadership
👉ReadMore __________________________
📌9-aprel kuni Green University'da Yoshlar kuni keng qamrovli va mazmunli dastur asosida faol tarzda nishonlandi. Tadbirlar davomida talabalar, professor-o‘qituvchilar hamda universitet rahbariyati birlashdi.
🗣️Kun davomida ishtirokchilar turli ta’limiy seminarlar, intellektual o‘yinlar, ochiq ma’ruzalar va madaniy tadbirlarda faol qatnashdilar. Muhit yoshlarga xos energiya, ishtiyoq va intilishlarga boy bo‘ldi.
Tadbirning eng esda qolarli biri Talabalar ligasi sport musobaqalarining ochilish marosimi bo‘ldi. Unda universitet rektori, professor Baxtiyor Pulatov ham talabalar bilan bir qatorda ishtirok etib, o‘zining faol ishtiroki orqali birlik, jamoaviylik va sog‘lom raqobat muhitini yanada mustahkamladi.
✔️Green University'da Yoshlar kuni yana bir bor universitet nafaqat ta’lim maskani, balki talabalar har tomonlama rivojlanadigan, faol ishtirok etadigan va birgalikda yuksaladigan muhit ekanini namoyon etdi.
#GreenUniversity#YoshlarKuni#TalabalarLigasi#TalabalarHayoti#Jamoaviylik#Liderlik
👉Batafsil
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
📢OPEN LECTURE ANNOUNCEMENT
Dear students, professors, and university staff!
Join us on April 9, 2026, at 14:00 for an engaging open lecture by Sherzod Ziyoyev, Senior Lecturer of the Department of Foreign Languages, historian and political scientist.
🎓Topic:
“Strategic Importance of the Modern Silk Road Projects and Transit Routes for Eurasian Land Countries”
🌍The lecture will explore the history, evolution, and current relevance of the modern Silk Roads — a must-attend for anyone interested in geopolitics, history, and regional development.
🗣Languages: Uzbek & English
📍Venue: University Conference Hall
💪Don’t miss this opportunity to gain valuable insights!
#OpenLecture#SilkRoad#Eurasia#Geopolitics#GreenUniversity#StudentLife _________________________
📢OCHIQ MA’RUZA E’LONI
Hurmatli talabalar, professor-o‘qituvchilar va universitet xodimlari!
Sizlarni 2026-yil 9-aprel kuni soat 14:00 da bo‘lib o‘tadigan ochiq ma’ruzaga taklif qilamiz. Ma’ruzachi — Xorijiy tillar kafedrasi katta o‘qituvchisi, tarixchi va siyosatshunos Sherzod Ziyoyev.
🎓Mavzu:
“Zamonaviy Ipak yo‘li loyihalari va tranzit yo‘nalishlarining Yevroosiyo quruqlik mamlakatlari uchun strategik ahamiyati”
🌍Ma’ruza davomida zamonaviy Ipak yo‘lining tarixi, rivojlanishi va bugungi kundagi ahamiyati haqida so‘z yuritiladi. Ushbu mavzuga qiziqqan barcha ishtirok etishga taklif etiladi.
🗣Tillar: o‘zbek va ingliz
📍Manzil: Universitet konferensiya zali
💪Foydali bilimlar olish imkoniyatini qo‘ldan boy bermang!
#OchiqMaruza#IpakYoli#Yevroosiyo#Geosiyosat#GreenUniversity#TalabalarHayoti
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube