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

Резултати

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

Пребарај: #beltandroad

当前筛选 #beltandroad清除筛选
Crypto M - Crypto News

@CryptoM · Post #64816 · 10.04.2026 г., 01:48

🚀 China's $270 Billion Middle East Investment Influences Iran Relations China's strategic investment of $270 billion in the Middle East is shaping its diplomatic stance towards Iran. Bloomberg posted on X, highlighting how these economic ties are influencing Beijing's foreign policy decisions. The substantial investment aims to strengthen China's presence in the region, focusing on infrastructure and energy sectors. This move is seen as a balancing act, as China seeks to maintain its economic interests while managing its relationship with Iran. The investment underscores China's broader strategy to expand its influence in the Middle East, a region critical for its Belt and Road Initiative. As China navigates these complex dynamics, its approach to Iran remains cautious, reflecting the delicate balance between economic ambitions and geopolitical considerations. #China#MiddleEast#Investment#Iran#Diplomacy#ForeignPolicy#BeltAndRoad#Infrastructure#Energy#Geopolitics

IELTS|Newspapers & Magazines|English

@emagzinewspars · Post #9342 · 15.10.2025 г., 02:02

#Beijing_Review🇨🇳📕[PDF]⬇️ 2 #October2025 #Weekly_Magazines For learning, for free(dom). @backupofmagazines In this issue , the spotlight shines on #Xinjiang 70, celebrating seven decades of transformation in the autonomous region—from economic health to cultural heritage. Global topics include #PalestineRecognition, evolving #ChinaUS relations, and the healing potential of dialogue via the #XiangshanForum. Special features explore #RuralRevitalization and tech-driven change in Qingdao and Fujian, as #ScienceInnovation takes center stage. From the vibrant Grand Bazaar to a Somali expat’s vision, this issue captures both regional pride and global dialogue. #BeijingReview#CulturalDiversity#BeltAndRoad#EducationMatters#ChinaPerspective