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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #110 · 3 јул.

Есть у QLabel есть одна особенность. Её минимальный размер определяется текстом, который в неё записан. Это приводит к тому что длинный текст принудительно увеличивает ширину интерфейса. В большинстве случаев это выглядит плохо. Как с этим бороться? 🔸 Обрезать текст заранее, задав лимит по длине строки. В этом случае мы теряем часть визуальной информации. Не всегда угадаешь нужный размер. В разных OS шрифт используется разный. 🔸 Делать перенос строки. Тогда мы получим изменение размера в другую сторону, что тоже поломает интерфейс. 🔸 Переопределить paintEvent() и сделать кастомный рендеринг текста. Можно, но слишком сложно для такой задачи. Проще всего обрезать текст под текущий размер виджета используя класс QFontMetrics. Он имеет готовый метод elidedText(), который просто вызываем по событию resizeEvent. Я также добавил установку ToolTip чтобы всегда можно было увидеть полный текст при наведении курсора. 🌎 Код здесь #qt#source

Hashtags

Резултати

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

Пребарај: #privatesale

当前筛选 #privatesale清除筛选

🎙 SEASIDE CLUB announcing Seed Sale phase on December 🔥🔥🔥 📌 Seaside Club is an international holding company that comprises different business endeavors around the globe that has developed an innovative investment mechanism for retail and corporate investors. 📌 The core of the mechanism relies on the blockchain technology via a unique smart contract system, Seaside Coin and proof-of-ownership NFTs. 📌 Company deals with real estate, ore mining, agricultural production, motion picture industry, retail apparel and with a rage of digital projects including their own NFT marketplace and Metaverse. 💎 Seaside Coin 💎 The core of the Seaside Ecosystem! Unique coin that is backed by the real world businesses that are digitized via a special smart contract structure! 💎 Seaside Business Ecosystem 💎 A unique investment system that allows you to earn fixed 30% yearly returns on your total value locked in staking! Convenient, profitable and safe from volatility investment system that welcomes anyone! 💎 Own Branded TV Series 💎 In order to boost the global brand recognition Seaside Club is launching its own branded TV series "Crypto Hunters" on a major streaming and TV broadcasting platforms! Token information - Token name: $SEASIDE - Seed Phase: $0,15 - Private sale: $0,3$ - Total Supply: 2,000,000,000 ⏰ Seed Phase planed for December Learn more: - Opportunities: https://77d40765.flowpaper.com/SeasideClubOpportunitiesmatis/ - Tokenomics: https://77d40765.flowpaper.com/SeasideCoinTokenomicsMatis/ - Telegram: https://t.me/+O-ydB2I2CIBjYzhi #SEASIDE#Privatesale#NFTs

ABOUT RAGS TO RICHIE by Alec Monopoly Alec Monopoly is one of the most influential artists of Pop Culture. With a unique universe, he has shown his work on several occasions for Art Basel Miami and has collaborated with worldwide known brands such as Hermès, Jacob&Co, Louis Vuitton or TAG Heuer. Surrounded by NFT experts and Web3 creators, Alec quickly became aware of the importance of what’s been created today in the NFT space. 💰ONLY 2 DAYS LEFT BEFORE MINT! 💰 🗓 DATE REMINDER 🗓 🎩 MINT DATE: July 24th 2022, 2PM EST (6PM UTC) 💰 PRIVATE SALE: Open to Whitelist & Raffle winners at 2PM EST (6PM UTC) 💸 PUBLIC SALE: Open to everyone at 3PM EST (7PM UTC) 👉 More info: https://twitter.com/ragstorichienft/status/1550491484306247682?s=20&t=gzN4NwfON9CLTjI95VhKdQ #NFTs#alec#Privatesale