В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
⚡️TON — LIVE: WalletConnect Supports TON
#WalletConnect#TON
TON — LIVE reports that WalletConnect has announced support for TON, enabling the integration of the blockchain with numerous wallets and institutional platforms.
Source: link
@tonlines
🆕TokenPocket now fully supports WalletConnect V2 for trondao! WalletConnect
✅ Users can seamlessly connect their TokenPocket_TP wallet to trondao DApps by simply scanning the #WalletConnect QR code or selecting the WalletConnect option.
Simplify your wallet connections with TokenPocket_TP.
👉https://www.tokenpocket.pro/
defi_sunio DeFi_JUST justinsuntron #Tron $TRX
【Details】https://twitter.com/TokenPocket_TP/status/1713825645493649636
【Powered By】Crypto Box
🆘 Просто эпический фейл от WalletConnect, который я обнаружил сегодня утром.
#WalletConnect - крупнейший (и возможно единственный) сервис подключения крипто кошельков к #dapp#web3 приложениям внес Украину и РФ в черный список.
По сути это парализует работу всего DeFi для СНГ. Вот такая децентрализация или иначе - отсутствие альтернатив “не из США”!
🍌
“블록체인 지갑 주소가 여권을 대체하는 시대 온다”– 월렛커넥트(WCT)가 표준화·개방을 추구하는 이유
#WalletConnect#WCT#월렛커넥트
https://www.blockmedia.co.kr/archives/892193?utm_source=telegram&utm_medium=social
Massive News Roundup This Week!
1️⃣ Explore OpenAI's *50 rules for ChatGPT* - Read More
2️⃣ Insightful article on *Solopreneurs* and shifting entrepreneurship - Read More
3️⃣ Interview with *Eugene Mutovkin* on the e-scooter market - Watch Here
4️⃣ *Maxim Spiridonov* interviews *Dmitry Zatsepin* on self-managed teams - Watch Here
5️⃣ Guides on launching startups and fundraising - Startup Guide, Funding Guide, Term Sheets, Duolingo Insights
6️⃣ Wired reports on the *Zizians* cult and their extreme actions - Read Article
7️⃣ Forbes discusses *Colossal Biosciences* and their goal to resurrect the mammoth - Read More
Crypto Updates:
- Bybit exchange reported a hack leading to $1.4 billion in losses. More Info
- SBF from FTX claims innocence; an appeal is underway.
- $10M raised by *WalletConnect Foundation* in token sales - Details Here
Experts note: *Altcoin season is selective* with capital shifting behavior impacted by institutionalization. Read More
#OpenAI#ChatGPT#Entrepreneurship#Scooters#Zizians#Mammoth#Bybit#FTX#WalletConnect#Altcoins#Crypto#VC#AI
🚀 MoonPay Collaborates to Introduce Stablecoin Payments in Retail
MoonPay has announced a partnership with WalletConnect and Ingenic to integrate stablecoin payments into physical retail environments. According to Foresight News, MoonPay's Virtual Accounts, supported by Iron, will facilitate fiat settlement for stablecoin transactions at checkout.
#MoonPay#WalletConnect#Ingenic#StablecoinPayments#Retail#FiatSettlement#VirtualAccounts#Iron
🚀 MoonPay, WalletConnect, and Ingenico Enable Stablecoin Payments at Retail Checkouts
MoonPay, WalletConnect, and Ingenico have collaborated to facilitate stablecoin payments at physical retail checkouts. According to NS3.AI, this partnership utilizes MoonPay Virtual Accounts for fiat settlement, integrating wallet connectivity with point-of-sale terminals. This allows merchants to accept stablecoin payments and receive immediate fiat conversion.
#MoonPay#WalletConnect#Ingenico#Stablecoin#Payments#Retail#Checkout#FiatConversion#NS3AI#VirtualAccounts#WalletConnectivity