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 слични објави

Пребарај: #q12026

当前筛选 #q12026清除筛选
Crypto M - Crypto News

@CryptoM · Post #65385 · 13.04.2026 г., 03:45

🚀 Indonesia's Central Bank Projects 5.2% GDP Growth in Q1 Indonesia's central bank has projected a GDP growth rate of 5.2% for the first quarter, according to Jin10. This forecast reflects the country's economic outlook as it navigates various domestic and international challenges. The central bank's projection aligns with efforts to maintain economic stability and growth amid global uncertainties. The anticipated growth rate is seen as a positive indicator for Indonesia's economic performance in the early part of the year. #Indonesia#CentralBank#GDPGrowth#EconomicForecast#Q12026#EconomicStability#GlobalEconomy#EconomicOutlook

Crypto M - Crypto News

@CryptoM · Post #64932 · 10.04.2026 г., 10:36

🚀 China Rare Earth Co. Projects Significant Profit Increase in Q1 2026 China Rare Earth Co. announced on April 10 that it expects to achieve a net profit attributable to shareholders of between 150 million and 180 million yuan in the first quarter of 2026. According to Jin10, this represents an increase of 103 million to 133 million yuan compared to the same period last year, marking a year-on-year growth of 217.32% to 280.78%. The company attributes this anticipated profit increase to the overall rise in the rare earth market during the first quarter of 2026. It has strengthened market analysis and further coordinated rare earth business procurement and sales, leading to a steady improvement in rare earth product performance and expected profits. Additionally, the company continues to enhance the management of loss-making enterprises, achieving a reduction in losses compared to the previous year. #China#RareEarth#ProfitIncrease#Q12026#MarketGrowth#BusinessPerformance#FinancialResults

Crypto M - Crypto News

@CryptoM · Post #64608 · 09.04.2026 г., 10:31

🚀 Allwinner Technology Projects Significant Profit Growth for Q1 2026 Allwinner Technology has announced its financial projections for the first quarter of 2026, expecting net profits attributable to shareholders to range between 1.95 billion yuan and 2.2 billion yuan. According to Jin10, this represents a year-on-year increase of 112.99% to 140.30%. Excluding non-recurring gains and losses, net profits are projected to be between 1.9 billion yuan and 2.16 billion yuan, marking a growth of 238.21% to 284.49% compared to the same period last year. During the reporting period, the company adjusted its product sales prices in response to rising costs of upstream raw materials and packaging. Additionally, Allwinner Technology has been actively expanding its product lines and promoting the mass production of new products. The anticipation of price increases has also led downstream customers to increase their stockpiling. These factors have contributed to an approximate 45% year-on-year growth in operating revenue, which in turn has driven the increase in net profits. #AllwinnerTechnology#ProfitGrowth#Q12026#FinancialProjections#RevenueIncrease#NetProfit#TechnologyIndustry#BusinessGrowth

Crypto M - Crypto News

@CryptoM · Post #64856 · 10.04.2026 г., 04:43

🚀 Global PC Shipments Expected to Rise by 3.2% in Q1 2026, Omdia Reports According to Jin10, Omdia's latest research indicates that the total shipments of desktops, laptops, and workstations are projected to increase by 3.2% year-on-year in the first quarter of 2026, reaching 64.8 million units. Among these, laptop shipments, including mobile workstations, are expected to see a slight year-on-year growth of 2.6%, reaching 50.8 million units. Desktop shipments, including desktop workstations, are anticipated to perform slightly better, with a year-on-year growth of 5.4%, reaching 14 million units. The growth is primarily driven by manufacturers and channel partners pulling in orders ahead of the widely expected rise in component costs. Additionally, the ongoing Windows 10 replacement cycle continues to drive corporate budget updates, and the concentrated product releases by Windows OEMs and Apple during the spring season are also contributing factors. #PCShipments#TechIndustry#LaptopGrowth#DesktopGrowth#OmdiaReport#Q12026#GlobalMarket#ITHardware#WindowsUpgrade#AppleRelease