В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
🔥「0」Gas $U Transfers on BNBCHAIN with TokenPocket!
TokenPocket now enables transferring $U with 0 gas fee on the BNB Chain automatically - enjoy smooth, 0-gas transfers, all with a secure, wallet-native experience.
Your first choice of #StablecoinWallet
👉http://tp.xyz
https://x.com/TokenPocket_TP/status/2003755846489231701?s=20
🆕$U is now listed on TokenPocket!
Manage your $U seamlessly with TokenPocket_TP: store, send, and swap in one powerful multi-chain #StablecoinWallet.
Track Easier! Trade Smarter!
👉http://tp.xyz
🟦 TokenPocket Weekly Report 🟦
🔵 Supported $U on TokenPocket.
🔵 Embrace New Era of #StablecoinWallet
🔵 Notice of Wallet Service Upgrade
🔵 Listed 5 DApps.
All-in-one, all in TokenPocket 👉http://tp.xyz
🚀TokenPocket Now Supports Multi-Chain Gas Payment with Stablecoins!
Powered by EIP-7702, TokenPocket now enables transferring gas payments in $USDT, $USDC, and more across multi-chains — including BNBCHAIN, base, and arbitrum — for a smoother, more cost-efficient transfer experience.
🔥 Explore it now in #StablecoinWallet!
🔗Tutorial
🧊Be Your First #StablecoinWallet!
→ https://help.tokenpocket.pro/en/wallet-operation/stablecoin/wallet
✅ Self-custody, your keys, your coins!
✅ Multichain supported — one wallet, all chains!
✅ Gas-free stablecoin transfers on BNBChain & Tron (more coming!)
🔐 Powered by TokenPocket — simple, secure, seamless.
📝 TokenPocket Monthly Report — June 2025
📖 Read the full report: https://tokenpocket-gm.medium.com/tokenpocket-monthly-report-june-2025-8a642e365b94
Main Upgrade ⏬
🎯#StablecoinWallet
🎯 Market Chart Upgraded
🎯 Gas-Free Transfer on TRON and BNBChain
🎯 Security Enhancement: Now supporting native MultiSig wallets for Bitcoin and Core — giving your assets even stronger protection.
✍️Share your thoughts and suggestions through our survey for a chance to win exclusive prizes. Every piece of feedback is valued!
✍️ Fill out the Q&A⏬
https://docs.google.com/forms/d/e/1FAIpQLSe8tElYK6V6qN5MqDtDIj7G7SjUw3cSv3bwC-rSXyLVq2USRQ/viewform?usp=send_form
📍 All In One, All In TokenPocket!
🔗https://tp.xyz
🔥USDT Supply on the TRON Surpasses $80 Billion, now accounting for over 51.74% of global circulation, making TRON the leading stablecoin network.
TokenPocket plays a key role by helping users save on gas through innovations like USDT gas payments, one-click energy rentals, and daily subsidy programs.
In 2025, TokenPocket continues to scale stablecoin usability — reinforcing its position as the go-to #StablecoinWallet for global users!
https://x.com/TokenPocket_TP/status/1936994956620750933
🎁 Pay Gas with Stablecoins & Share a Price Pool of $2,000
→https://zealy.io/cw/tokenpocket/questboard/sprints
🚀 New round of #StablecoinWallet Campaign is now live on zealy — complete quests and experience paying gas fees with stablecoins via TokenPocket.
*Exclusively for the community. No investment advice! Any new quests will be announced in our Telegram community first.💕💕#NFA
📝 TokenPocket Monthly Report — January 2026
In January, TokenPocket focused on stablecoins, security enhancement and trading experience.
🎯#SAFU
TokenPocket now supports Solana Multi-Sig Wallet with native integration. Multi-Sig, Multi- Safe.
🎯 Advanced Trading Experience
TokenPocket has expanded Limit Order support to
Ethereum, Base, BNB Chain, Arbitrum, and Polygon. With limit orders, users can define their target prices in advance and execute with more discipline. Better execution quality with less time spent watching charts.
🎯#StablecoinWallet
TokenPocket now supports stablecoin gas payment on
Base, BNB Chain, Polygon, Arbitrum, and Ethereum, and this capability is also available in Swap & Bridge. That means users can pay network fees with stablecoins in more scenarios, reducing reliance on native gas tokens and making transfers, swaps, and bridging much smoother.
📍 All In One, All in TokenPocket
https://tokenpocket-gm.medium.com/tokenpocket-monthly-report-january-2026-2c48e070338e
🚀 Keep Enjoying BNBCHAIN Gas-Free Stablecoin Transfers with TokenPocket!
✅ Supports $USDC & #USD1 - Ends on Nov 30, 2025.
( $USDT Support Ended on Oct 31, 2025)
🔷 Perfect for daily transfers with user-friendly interface.
Unlock the future of #StablecoinWallet with TokenPocket.
👉http://tp.xyz
🎉 Enjoy Gas-Free Stablecoin Transfers on BNBCHAIN with TokenPocket.
✅Supports $USDT & #USD1 - Ended on July 31
🔷Perfect for new users & everyday transfers.
Transfer smarter with your #StablecoinWallet!
👉https://tp.xyz