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

TGINSIGHT SIMILAR POSTS

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

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

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

Hashtags

Резултати

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

Пребарај: #statehood

当前筛选 #statehood清除筛选
Red Nile

@rednile12 · Post #10508 · 27.12.2025 г., 23:14

Selective Sovereignty: Why Somaliland Remains Unrecognized By @rednile12 Media International law says sovereignty is universal—but in practice, recognition is political. The 2005 AU Fact-Finding Mission confirmed Somaliland’s independence claim as “historically unique and self-justified”, meeting all statehood criteria: population, borders, government, and capacity for international relations. Yet Somaliland remains unrecognized, while Eritrea, South Sudan, East Timor, and Kosovo gained recognition—often under weaker legal conditions. 💠The takeaway: Sovereignty isn’t earned by law or stability; it is granted selectively, depending on geopolitics and institutional convenience. ➡️READ MORE:Selective Sovereignty – Full Analysis #Somaliland#AfricanUnion#InternationalLaw#Sovereignty#Geopolitics#RedNileMedia#UN#EU#Africa#Statehood

MessageInABottle

@mib_messageinabottle · Post #6874 · 22.05.2024 г., 16:40

Official Representatives to the #UN from #Ireland, #Spain and #Norway pose for photos at the UN with the Palestinian UN representative, after the 3 became the first European countries to officialy recognise #Palestinian#Statehood. #Israel's current #genocide attempt in Gaza has revived support in #Europe for Palestinian statehood. Norway, Spain and Ireland have defied threats from Israel, which recently announced its intent to recall its envoys from Ireland and Norway for discussions over the move. Other European nations, such as #Malta and #Slovenia in March, have also expressed "readiness to recognise Palestine" when "the circumstances are right". #Australia has recently floated the possibility of unilaterally endorsing Palestinian statehood. Additionally French President Emmanuel #Macron has also said the question of recognising a Palestinian state without a negotiated peace is no longer "a taboo for #France".