🤩Разбираем полезные исходники!
Функция, возвращающая словарь с данными о панели задач.
screen : номер монитора
location : расположение на экране (внизу, слева и тд)
geometry : QRect с координатами таскбара
system_tray : доступен ли системный трей
🔸 Как может пригодиться?
Я использую для открытия виджета по клику на значке в трее с выравниванием по таскбару. Аналогично работает попап у Dropbox клиента.
🔸 Тестил на Windows10 и Debian10.
🔸 В комплекте проверочный виджет который при создании точно перекрывает таскбар. Проверка правильности определения геометрии таскбара. Закрывается по клику.
🔸 Ещё в комплекте пример окошка, которое появляется в районе часов над таскбаром.
🔸 Есть один баг. При перекрытии тасбара в Gnome (linux) виджет не получает событий от мыши.
Решения пока не нашел😕
Код забираем здесь ↗️
#source#qt
🌍 The largest tectonic plate, the Pacific Plate, moves up to 10 centimeters per year—faster than human fingernails grow. Its motion triggers earthquakes and reshapes entire coastlines. ✨
#plate⚡#tectonics⚡#earthquakes⚡#geology⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 The Himalayas are growing taller each year because the Indian plate keeps pushing into the Eurasian plate. This slow collision also makes the region one of the world’s most earthquake-prone. ✨
#plate⚡#tectonics⚡#earthquakes⚡#mountains⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 Every year, thousands of tiny earthquakes ripple along Earth's mid-ocean ridges as tectonic plates slowly spread apart. These hidden quakes help shape much of the seafloor without being felt on land. ✨
#plate-tectonics ⚡#seafloor⚡#earthquakes⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 Earth's crust is in constant motion due to convection currents—slow, swirling movement of hot rock deep below the surface. This drives plate movement, causing earthquakes and forming new land. ✨
#processes⚡#plate⚡#tectonics⚡#geology⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍