В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
🚛 We’re building the future of freight operations.
Datatruck has raised a $12M Series A round led by Avenue Growth Partners, to accelerate our mission of transforming how carriers manage operations and cash flow through AI-powered automation.
Our AI-native TMS platform unifies dispatch, finance, and digital workflows into one intelligent system — empowering trucking companies to make faster, smarter, and more profitable decisions across their businesses.
This investment will help us expand our product ecosystem, deepen AI capabilities, and scale adoption across North America’s freight network.
We’re just getting started — the road ahead is wide open. 💡
👉 Learn more: Datatruck.io
#freighttech#logistics#transportation#trucking#saas#ai#seriesa#startup#funding
🚀 Crypto Startups Secure $76 Million in Funding in Early Q2 2026
DefiLlama data reveals that crypto startups raised $76 million in the first week of the second quarter of 2026. According to Odaily, the total funding for the year has approached $500 million. Key funding rounds this week include:
Pharos secured $44 million in a Series A round with participation from SNZ Holding, Chainlink, and Flow Traders. The company focuses on building a high-performance Layer 1 blockchain compatible with Ethereum applications, emphasizing RWA and decentralized infrastructure networks.
Oh raised $7.5 million in a Series A round led by Maven 11, with contributions from L1 Digital, Hashed, Auros Global, and Maelstrom. The project aims to develop a Web3 AI platform offering decentralized AI service tools like OhChat.
Kulipa completed a $6.2 million seed round led by Flourish Ventures and 1kx, with participation from White Star Capital and Fabric Ventures. The company provides branded payment cards for crypto wallets, enabling the conversion of digital assets to traditional currency at checkout.
#CryptoStartups#Funding#Q22026#Pharos#SeriesA#Blockchain#Layer1#Ethereum#Oh#Web3#AI#DecentralizedAI#Kulipa#SeedRound#PaymentCards#CryptoWallets#DigitalAssets#TraditionalCurrency