В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
#ALTS MARKET CAP ANALYSIS
The ALTS market cap is consolidating within a falling wedge pattern and is currently rebounding from the support trendline. The 21MA is acting as a resistance barrier near the wedge’s upper boundary.
A strong breakout above both the 21MA and the wedge resistance trendline would confirm a bullish trend. Conversely, a breakdown below the support trendline would invalidate the pattern.
#ALTS MARKET CAP ANALYSIS
The ALTS market cap is breaking out of the horizontal supply zone of the ascending triangle pattern, with the Ichimoku Cloud providing strong support beneath the pattern.
A confirmed breakout would signal bullish continuation and open the path toward a new all-time high, potentially triggering a strong rally across the altcoin market.
#ALTS MARKET CAP ANALYSIS
The ALTS market cap is consolidating within a falling wedge pattern and is currently rebounding from the support trendline. The 21MA is acting as a resistance barrier near the wedge’s upper boundary.
A strong breakout above both the 21MA and the wedge resistance trendline would confirm a bullish trend. Conversely, a breakdown below the support trendline would invalidate the pattern.
#ALTS MARKET CAP ANALYSIS
The ALTS market cap is consolidating within a falling wedge pattern and is currently rebounding from the support trendline. The 21MA is acting as a resistance barrier near the wedge’s upper boundary.
A strong breakout above both the 21MA and the wedge resistance trendline would confirm a bullish trend. Conversely, a breakdown below the support trendline would invalidate the pattern.
#ALTS MARKET CAP ANALYSIS
The ALTS market cap is breaking out of the horizontal supply zone of the ascending triangle pattern, with the Ichimoku Cloud providing strong support beneath the pattern.
A confirmed breakout would signal bullish continuation and open the path toward a new all-time high, potentially triggering a strong rally across the altcoin market.
#ALTS MARKET CAP ANALYSIS
The ALTS market cap is breaking out of the horizontal supply zone of the ascending triangle pattern, with the Ichimoku Cloud providing strong support beneath the pattern.
A confirmed breakout would signal bullish continuation and open the path toward a new all-time high, potentially triggering a strong rally across the altcoin market.
#ALTS MARKET CAP ANALYSIS
The ALTS market cap has broken out of the ascending triangle with strong volume, marking a new ATH.
It is now retesting the pattern, with the Ichimoku cloud acting as solid support.
A successful retest could trigger a powerful bullish rally across the ALTS market.
#ALTS MARKET CAP ANALYSIS
The ALTS market cap is experiencing a significant rebound from the support trendline of the descending channel, signaling potential bullish momentum. This rebound is currently facing resistance from the Ichimoku cloud, which is acting as a barrier.
However, the 200-day Moving Average is providing strong support, further indicating a bullish trend.
A decisive breakout above both the Ichimoku cloud and the descending channel would likely trigger a robust bullish rally in the ALTS market, suggesting substantial upward movement and positive investor sentiment.
#ALTS MARKET CAP ANALYSIS
The alts market cap is currently retesting above the symmetrical triangle pattern. The 100-day moving average is providing strong support, and the Ichimoku cloud indicates a bullish trend.
An upward move is anticipated as long as the alts market cap remains above the triangle. The only bearish scenario would be a sustained breakdown of the Ichimoku cloud.
#ALTS MARKET CAP ANALYSIS
The Alts market cap has broken out of the symmetrical triangle and is currently retesting above it. The Ichimoku cloud is also providing support.
A successful retest above the triangle would confirm a bullish trend, while a failed retest could indicate further movement within the triangle.
This gives me the Covid Crash (March 2020) vibes actually 🤔
If you remember back in October I said that Middle East was a ticking bomb that could trigger a Black Swan event at any moment, so it's not a surprise for me.
📎Now what about the markets: I don't think the reaction will be as dramatic as in March 2020 but stay away from leverage. If you have some stables - slowly DCA #Alts.
I'm on spot and not worried at all. We'll get through it all
💰#ALTS MARKET CAP is currently forming a descending triangle pattern. It is trading within the Ichimoku cloud and below the 50-day moving average (MA), indicating a state of indecision.✅
💬A breakout above the MA 50 would confirm a bullish trend, whereas a rejection would suggest a retest of the horizontal support level.
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️