В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
BEEAH Headquarters / Zaha Hadid Architects
BEEAH Group's new headquarters in Sharjah, UAE, was opened on Wednesday, March 30 by His Highness Dr. Sheikh Sultan bin Muhammad Al Qasimi, Ruler of Sharjah. Powered by its solar array and equipped with next-generation technologies for operations at LEED Platinum standards, the new headquarters has been designed by Zaha Hadid Architects (ZHA) to achieve net-zero emissions and will be the group’s management and administrative centre that sets a new benchmark for future workplaces.
#arch_shovel#architecture#archdaily#zahahadid
Zaha Hadid Architects wins competition to design the new Hangzhou International Sports Centre.
Incorporating a 60,000-seat football stadium and practice pitches, the centre also includes a 19,000-seat indoor arena as well as an aquatics centre with two 50-metre pools. The centre establishes a new riverfront park and public plazas with direct access to Lines 3 and 5 of the city’s expanding metro network.
Located within the warm temperate climate of Hangzhou, the International Sports Centre has been designed to the highest 3-Star rating of China’s Green Building Program with each venue providing optimal conditions using natural hybrid ventilation most of the year. Annual solar irradiation analysis has determined the composition of the façade’s external louvres while photovoltaics will harvest solar power for all venues. Ground heat exchange and recovery systems will ensure the most efficient operations of all facilities.
#architecture#zahahadid#arch_shovel#archdaily
KAPSARC awarded five LEED EBOM Platinum certifications by the US Green Building Council
.
The only buildings in Saudi Arabia to receive Platinum LEED Existing Building: Operation & Maintenance (EBOM) certification, KAPSARC’s five community facilities achieved the highest sustainability standards throughout the centre’s design, construction, operations and maintenance procedures.
.
KAPSARC’s waste management program diverted 94% of solid waste from landfill through waste stream audits that eliminated single-use goods and developed an effective waste segregation strategy across multiple stages. KAPSARC also reduced the compound’s water consumption by 30% with weather-based micro-irrigation, mulching, native planting and efficient faucets. The centre’s energy usage was also reduced by 35% with energy audits regularly identifing energy conservation measures.
.
#architecture#zahahadid#zahahadidarchitects#architecture#arch_shovel#archidaily
Parametric Architecture.
Works by Mariana Cabugueira ( a Senior Architectural Designer at Zaha Hadid Architects):
1 – the Concert Hall.
2 - Tower C - the Zaha Hadid tower.
3-6 – A Mega Luxury Hotel and Office Hybrid Tower.
7-8 – The Floating Park Island.
9-10 – the Mykonos Villa.
#arch_shovel#architecture#parametric#maya#zahahadid
👆🏿❗️Муниципальный депутат Зюзино Юрий Самгин побеседовал с исполнительным директором архитектурного бюро Zaha Hadid Кристосом Пассосом. Это архбюро разрабатывало концепцию застройки Кузьминок – «столицы реновации», как окрестили район столичные власти.
👉🏿Рекомендуем к просмотру:
https://youtu.be/jdqerALE5OM
Кстати, вот интервью с господином Пассосом от ноября 2017 г.
#конкурс#москомархитектура#кузнецов#самгин#zahahadid#кузьминки