В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
【TokenPocket Retweeted】
Retweeted SimplexCC : We’re thrilled to announce a new partnership with TokenPocket_TP🚀
Now 20 million + users can securely buy tokens through SimplexCC on the Token Pocket platform 😎
Start your crypto journey with #Simplex today!
#Buycrypto#Onramp
⏵ [[1]](https://video.twimg.com/ext_tw_video/1699414869848571904/pu/vid/avc1/1200x674/RdzHWTjwneU4r8Bm.mp4?tag=12)
【Details】https://twitter.com/SimplexCC/status/1699417487580782760
【Powered By】Crypto Box
#cplusplus#high_performance#interior_point_method#linear_optimization#mixed_integer_programming#parallel#quadratic_programming#simplex
HiGHS is a free, high-performance software that solves large and complex optimization problems like linear, quadratic, and mixed-integer programming. It works fast on many computers, including Linux, MacOS, and Windows, without needing extra software. You can use it through various programming languages like Python, C, C#, and Fortran, making it easy to integrate into your projects. HiGHS supports both serial and parallel computing, and it is advancing GPU acceleration for even faster solutions. This helps you efficiently find the best solutions for planning, scheduling, and decision-making problems in science, engineering, and business. Installation is straightforward, and detailed documentation is available to guide you[1][2][3][4].
https://github.com/ERGO-Code/HiGHS
🚀Degen Privacy Stack 2026: Own Your Comms with No-KYC Crypto Tools – From eSIMs to Encrypted Chats!
here's the ultimate blueprint for true digital sovereignty – all powered by crypto, privacy keys, and zero KYC hassles. Stay ghosted in a surveillance world:
- Degenphone eSIM Mastery: Tokenize real eSIM phone numbers as NFTs on Solana/TON. Own a working number for SMS, calls, and data plans – mint, trade, activate anonymously via blockchain. No ID, no docs – just your wallet and privacy keys for instant, traceless global connectivity.
- tMail for Ephemeral Emails: Grab disposable, auto-expiring emails without KYC. Crypto payments optional for premium anonymity – link to your setups for secure logins that vanish post-use, keeping your real identity locked away.
- Nostr Protocol Freedom: Decentralized social with pub/priv keys – no email/phone signup, pure P2P relays. Zap sats via Lightning, build uncensorable networks. Own your data, migrate keys seamlessly for ultimate control.
- SimpleX Chat Supreme: E2EE messenger with no user IDs – connect via QR/one-time links. Amp up with white noise vector sessions: Inject random noise into traffic for anti-analysis, quantum-resistant encryption, and self-destructing messages.
- Vector Messenger Edge: Nostr-based, zero-metadata encryption for texts, media, voice. BIP-39 wallet integration turns your account into a crypto vault – plausible deniability and no-compromise privacy.
- White Noise App Stealth: Nostr-powered secure messenger with MLS end-to-end encryption. Forward/post-compromise security, identity-free – massive scalable groups without leaks.
- 0xChat Lightning Vibes: Nostr secure chat with private key login – no reg, E2EE DMs/groups, voice/video, Cashu/Lightning payments. Encrypted everything, alias keys for extra secrecy.
- Video Calls on Honey HiveTalk: Nostr-first conferencing at https://honey.hivetalk.org – Lightning-powered rooms, desktop-optimized for private group calls. Zap to join/active, no KYC barriers.
Stack these for crypto trades, activism, or pure freedom – own your phone, email, chats with crypto keys only. No Big Tech oversight!
#DegenPrivacy#NoKYC#CryptoSovereignty#Nostr#SimpleX#VectorMessenger#WhiteNoiseApp#0xChat#Degenphone#tMail#HiveTalk#PrivacyTools2026
Your fave stack addition? Zap or reply! 🔒👻