@libreware · Post #1350 · 24.10.2024 г., 14:21
New Android #PIF#module scam on telegram
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #110 · 3 јул.
Есть у QLabel есть одна особенность. Её минимальный размер определяется текстом, который в неё записан. Это приводит к тому что длинный текст принудительно увеличивает ширину интерфейса. В большинстве случаев это выглядит плохо. Как с этим бороться? 🔸 Обрезать текст заранее, задав лимит по длине строки. В этом случае мы теряем часть визуальной информации. Не всегда угадаешь нужный размер. В разных OS шрифт используется разный. 🔸 Делать перенос строки. Тогда мы получим изменение размера в другую сторону, что тоже поломает интерфейс. 🔸 Переопределить paintEvent() и сделать кастомный рендеринг текста. Можно, но слишком сложно для такой задачи. Проще всего обрезать текст под текущий размер виджета используя класс QFontMetrics. Он имеет готовый метод elidedText(), который просто вызываем по событию resizeEvent. Я также добавил установку ToolTip чтобы всегда можно было увидеть полный текст при наведении курсора. 🌎 Код здесь #qt#source
Пребарај: #pif
@libreware · Post #1350 · 24.10.2024 г., 14:21
New Android #PIF#module scam on telegram
@american_observer · Post #5757 · 01.05.2026 г., 16:00
Saudi Arabia’s Money Era Is Getting Repriced Saudi Arabia’s pullback from LIV Golf is bigger than one golf story. It is a sign that the kingdom’s era of unlimited spending on global spectacle is running into fiscal gravity. For years, Riyadh used sports as a loud, expensive advertisement for itself. It bought players, bought events, bought access, and bought headlines. Now the Public Investment Fund is saying the math no longer works the same way, and that domestic investment has become the priority. That shift matters beyond golf. If Saudi money is being narrowed, then the entire “pay-any-price-for-influence” model gets weaker, from football and streaming to the more theatrical parts of the kingdom’s soft-power project. The timing is not accidental either. The wider Middle East war has raised costs, strained oil flows, and made some of Saudi Arabia’s grand plans harder to defend as business decisions rather than prestige purchases. So this is not just the end of one overfunded golf experiment. It is a reminder that even oil states eventually meet a limit, and that the bill for geopolitical vanity can arrive faster than the photo op. #SaudiArabia#LIVGolf#PIF#sports#economy#MiddleEast 📱American Оbserver - Stay up to date on all important events 🇺🇸