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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #62 · 4 апр.

Когда разрабатываете свой GUI с помощью PyQt для какого-либо софта бывает необходимо позаимствовать цвета из текущего стиля интерфейса. Например, чтобы правильно раскрасить свои виджеты, подогнав их по цвету. Ведь бывает, что ваш GUI используется в разных софтах. Причём некоторые со светлой темой а другие с тёмной. По умолчанию стили наследуются, но если вы задаёте какую-либо раскраску для части виджета через свой styleSheet, то требуется ссылаться на цвета текущего стиля. Как это сделать? Как получить нужный цвет из палитры имеющегося стиля? Это достаточно просто, нужно использовать класс QPalette и его роли. Например, мне нужно достать цвет текста из одного виджета и применить его в другом как цвет фона (не важно зачем именно так, просто захотелось😊). Получаем палитру виджета и сразу достаём нужный цвет, указав его роль. from PySide2.QtGui import QPalette color = main_window.palette().color(QPalette.Text) теперь можем использовать этот цвет в стилях my_widget.setStyleSheet(f'background-color: {color.name()};') Готово, мы динамически переопределили дефолтный стиль используя текущий стиль окна! На самом деле есть запись покороче, в одну строку и без лишних переменных. Не очень-то по правилам CSS, но Qt это понимает. my_widget.setStyleSheet('background-color: palette(Text);') Этот способ не подходит если вам нужно как-то модифицировать цвет перед применением в своих стилях. В этом случае потребуется первый способ. Зато он прекрасно сработает в файле .qss, то есть не придётся в коде прописывать раскраску отдельных элементов через ссылки на палитру, всё красиво сохранится в отдельном файле .qss! QListView#my_widget::item:selected { background: palette(Midlight); } Про имеющиеся роли можно почитать здесь🌍 #qt#tricks

Hashtags

Резултати

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

Пребарај: #wealthmanagement

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

@CryptoM · Post #65430 · 13.04.2026 г., 07:25

🚀 South Korea Considers Including Digital Assets in Pension Calculations South Korea's Audit and Inspection Board has recommended changes to the country's pension system to include digital assets in the calculation of basic pension eligibility. According to ChainCatcher, the board's report highlights the economic value of digital assets, which are currently excluded from the property scope defined by the basic pension law. This exclusion allows individuals with substantial digital assets to qualify for pension benefits. The board argues that digital assets should be recognized as property with clear economic value, despite their differing form from traditional financial assets. The Ministry of Health and Welfare agrees with this assessment, acknowledging the need to prevent relatively high-income individuals from the lower 70% income bracket from receiving basic pension benefits. The ministry supports the inclusion of digital assets in the property calculation for pension eligibility. #SouthKorea#DigitalAssets#PensionSystem#EconomicValue#FinancialPolicy#BasicPension#MinistryOfHealthAndWelfare#Blockchain#WealthManagement

Venture Village Wall 🦄

@venturevillagewall · Post #4041 · 31.01.2025 г., 19:00

Norway Fund Boosts Bitcoin Holdings Norway's sovereign wealth fund increased Bitcoin exposure by 153%, now holding 3,821 BTC, valued at $350 million. Significant growth from 796 BTC since 2020. Read more: source #Bitcoin#Crypto#VC#Investment #Bitcoin#Crypto#VC#Norway#Investment#SovereignFund#BTC#Finance#WealthManagement#MicroStrategy#DigitalAssets#Growth#MarketTrends#Trends#Assets#Portfolio#Economy#Trading

Venture Village Wall 🦄

@venturevillagewall · Post #4153 · 14.02.2025 г., 19:00

Citi Eyes Crypto Custody Expansion Citi is considering the addition of crypto custody services, indicating a growing interest in the digital asset space. Meanwhile, 60,045,505 #XRP, valued at 163,660,947 USD, was recently transferred between unknown wallets, according to Whale Alert. Read more: BBG #Citi#Crypto#XRP#Custody#WhaleAlert#Finance#DigitalAssets#Banking#Investment#Assets#Blockchain#Wallets#Market#News#Updates#FinanceNews#FinanceTech#WealthManagement#CustodyServices#DigitalCurrency

Venture Village Wall 🦄

@venturevillagewall · Post #3795 · 05.01.2025 г., 10:00

Gold and Bitcoin Gain Structural Significance JPMorgan analysts predict lasting inflation hedging strategies as gold and Bitcoin solidify their roles in investor portfolios. They deem 2024 pivotal for the crypto market with a projected influx of $78 billion. Notably, the share of gold investments among private investors is also on the rise. Read more: ForkLog #JPMorgan#Bitcoin#Gold#Crypto#Investing#Inflation#MarketTrends#Finance#WealthManagement#InvestmentStrategies #2024 #CapitalFlow#DigitalAssets#PortfolioManagement#Cryptocurrency#Hedging#FinancialInsights

Venture Village Wall 🦄

@venturevillagewall · Post #4146 · 14.02.2025 г., 04:00

Bitcoin Investment Bills Could Drive $23B Matthew Sigel from Vaneck highlights that 20 U.S. states are advancing Bitcoin reserve bills, which could inject $23 billion (~247,000 BTC) into the market. Various state funds, including budget surpluses, are proposed for Bitcoin investments. Read more here. #Bitcoin#Investment#Finance#Markets#VC#Crypto#US#Legislation#Blockchain#PensionFunds#Funds#WealthManagement#BudgetSurplus#StateFunds#Reserves#Securities#Trading#Innovation#DigitalAsset#Decentralized#Ecosystem

Venture Village Wall 🦄

@venturevillagewall · Post #4079 · 06.02.2025 г., 01:00

Significant Crypto Transfers Alert 🚨 2,000 #BTC transferred (worth $193M) between unknown wallets. 🚨 50B #HEX transferred to burn address (totaling ~$115M) in multiple transactions. 📰 Tiger 21's high-net-worth investor network holds $6 billion in digital currencies. 📈 MicroStrategy reports Q4 2024 results: BTC Yield at 74.3%, targets 15% for 2025; holds ~447,470 #BTC valued at $23.9B, despite a net loss of $670.8M. For more details on transactions, visit Whale Alert and for MicroStrategy's update check Strategy News. #BTC#HEX#WhaleAlert#Crypto#Finance#MicroStrategy#Investment#Blockchain#Tiger21#Investments#MarketTrends#DigitalAssets#FinancialResults#Earnings#BurnAddress#HighNetWorth#WealthManagement#BTCYield#CryptoHoldings#FinancialMetrics