TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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

Hashtags

Резултати

Пронајдени 3 слични објави

Пребарај: #futuremindssummit

当前筛选 #futuremindssummit清除筛选
Opportunities with Zula

@opportunities_zula · Post #1859 · 16.04.2026 г., 18:48

Yes, you heard it right! The Future Minds Summit covers your airfare, meals, accommodation, and even your visa costs. Eligibility: Open to Worldwide Participants 📍 Bangkok, Thailand 🇹🇭 🗓 Event Dates: 16-19 July 2026 ⏳ Deadline: 16 June 2026 👉 Apply here: https://thegyn.org/fms-thailand/ (link in bio) #FutureMindsSummit #Thailand #CallForDelegates#YouthLeadership#FundedOpportunity FMST

Opportunities with Zula

@opportunities_zula · Post #1845 · 15.04.2026 г., 10:44

📣 Call For Worldwide Applications! The Future Minds Summit Thailand 🇹🇭 2026 invites motivated youth from across the world to take part in a global leadership and Intellectual dialogue on Sustainable Development Goals in Bangkok, Thailand 🎓 Theme: Exploring Sustainability through Innovative Minds 🌍 Open to Worldwide Participants Scholarship Covers: ✈️ Airfare 🗄️ Visa Fees (if any) 🏨 Accommodation 🍽 Meals & Tea Breaks 📄 Visa support & Certification 🎙️ Speaking Opportunity at the Forum 🤝 All Social Activities & Cultural Fest 🗓 Event Dates: 16-19 July 2026 ⏳ Deadline: 16 June 2026 👉 Apply here: https://thegyn.org/fms-thailand/ #FutureMindsSummit #Thailand #CallForDelegates#YouthLeadership#FundedOpportunity

Opportunities with Zula

@opportunities_zula · Post #1857 · 16.04.2026 г., 15:42

Bangkok is Calling Future Leaders! Visit: https://tinyurl.com/fms-thailand2026 Applications are now open for the GYN FutureMinds Summit 2026 in vibrant Bangkok, Thailand Whether you're a student, graduate, or professional (ages 16–45), this is your chance to connect, learn, and lead on a global stage. No specific background required — just passion and vision! What’s Covered? Airfare Accommodation Meals & Tea Breaks Visa Support & Fees (if applicable) Speaking Opportunity Cultural Fest & Social Activities Certification Join a diverse network of changemakers, gain international exposure, and make your voice heard where it matters. Tag someone who shouldn’t miss this opportunity! #FutureMindsSummit#FullyFunded#YouthLeaders#GlobalOpportunities#Bangkok2026#Changemakers#ApplyNow