🤩Разбираем полезные исходники!
Функция, возвращающая словарь с данными о панели задач.
screen : номер монитора
location : расположение на экране (внизу, слева и тд)
geometry : QRect с координатами таскбара
system_tray : доступен ли системный трей
🔸 Как может пригодиться?
Я использую для открытия виджета по клику на значке в трее с выравниванием по таскбару. Аналогично работает попап у Dropbox клиента.
🔸 Тестил на Windows10 и Debian10.
🔸 В комплекте проверочный виджет который при создании точно перекрывает таскбар. Проверка правильности определения геометрии таскбара. Закрывается по клику.
🔸 Ещё в комплекте пример окошка, которое появляется в районе часов над таскбаром.
🔸 Есть один баг. При перекрытии тасбара в Gnome (linux) виджет не получает событий от мыши.
Решения пока не нашел😕
Код забираем здесь ↗️
#source#qt
🪐 In 2022, scientists used data from the Atacama Cosmology Telescope in Chile to make the sharpest-ever map of the cosmic microwave background’s subtle temperature patterns. This ancient light, which blankets galaxies like our Milky Way, holds whisper-faint traces left by the first matter clumps—revealing how gravity, even in the universe’s earliest moments, started pulling atoms together to form all the cosmic structures we see today. ✨
#microwave⚡#background⚡#universe⚡#gravity⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space
👉subscribe Universe Mysteries
👉more Channels
🪐 The cosmic microwave background (CMB) is a faint glow that fills the universe, left over from when the cosmos was just 380,000 years old. Tiny temperature differences in the CMB, first mapped in detail by the Planck satellite, reveal subtle "hot" and "cold" spots—clues to how galaxies, like the Milky Way and Andromeda, began to form from small ripples in the early universe. ✨
#microwave⚡#background⚡#universe⚡#Planck⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space
👉subscribe Universe Mysteries
🪐 The cosmic microwave background contains faint "Sunyaev-Zel’dovich effects," which happen when the ancient microwave light passes through hot gas in galaxy clusters like the Bullet Cluster. This process boosts the energy of some photons (light particles), leaving tiny shadows in the background glow—allowing astronomers to map both distant galaxy clusters and the hot plasma between galaxies by studying these subtle marks in the oldest light in the universe. ✨
#microwave⚡#background⚡#galaxyclusters⚡#plasma⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space
👉subscribe Universe Mysteries
👉more Channels