TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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

Hashtags

Резултати

Пронајдени 4 слични објави

Пребарај: #futureofdriving

当前筛选 #futureofdriving清除筛选
Auto Life

@revheadcrypto · Post #502 · 17.09.2024 г., 15:17

🚗💨Unveiling the Lotus Theory 1: A 1000-HP Marvel!🌟 Get ready to be amazed by the all-carbon supercar that redefines performance! With a compact length of just 4.5 meters, the Theory 1 features a unique door design that lifts up while sliding back. 🚪✨ 🔋Power & Performance: - 1000 HP💥 - 0-100 km/h in just 2.5 seconds⏱️ - Top speed exceeding 320 km/h🚀 - Equipped with a 70 kWh battery for a range of 400 km⚡ - Weighs in at an impressive 1.6 tons⚖️ #LotusTheory1#Supercar#ElectricPerformance#CarEnthusiast#Innovation#FutureOfDriving#LuxuryCars#Auto

Auto Life

@revheadcrypto · Post #453 · 06.09.2024 г., 08:22

🔋✨MG to Launch Electric Car with Solid-State Batteries Ahead of Competitors! The brand's serial models are set to feature these innovative batteries by mid-2025, as announced by SAIC Vice President Yu Jingmin. 🚗⚡️ Preliminary reports suggest that the first model equipped with this cutting-edge technology will be the production version of the recent MG Cyber GTS concept. 🌟 Solid-state batteries offer numerous advantages: reduced size and weight, increased energy density, longer lifespan across a wider temperature range, and a lower risk of ignition. 🔒🔥 #MG#ElectricCars#SolidStateBatteries#Innovation#CyberGTS#FutureOfDriving#Auto

Auto Life

@revheadcrypto · Post #643 · 19.11.2024 г., 10:12

🚗✨ Introducing the Robo X: The Ultimate Battery Supercar! 🚀💨 Get ready to experience mind-blowing acceleration with a stunning 0-100 km/h in just 1.9 seconds! ⚡️🔥 Built on a lightweight carbon and aluminum monocoque, the Robo X weighs in at just 1850 kg. With an impressive estimated range of 650 km, this supercar is designed for both speed and endurance! 🌍🔋 Want to be among the first to own this revolutionary vehicle? Pre-order now with a deposit of 49,999 yuan (approximately 700,000 rubles)! 💰🛒 Production is set to kick off in 2027, so don't miss your chance to be part of the future of automotive innovation! 🏎️💨 #RoboX#Geely#Baidu#Supercar#ElectricVehicle#FutureOfDriving#Innovation#PreOrderNow#Auto