Модуль Qt․py это не просто текстовый модуль, его компоненты генерируются на лету в зависимости от ситуации.
Поэтому ваша любимая IDE не сможет качественно сообразить автокомплиты под этот модуль.
Решение здесь более чем очевидно, надо сделать stubs-файлы. Это файлы с расширением .pyi, описывающие содержимое модуля но не имеющие рабочего кода.
Ну что, готовы потратить пару месяцев своей жизни чтобы описать все классы Qt и их методы? 😭
Расслабьтесь, за вас это уже сделали добрые люди.
Спасибо Fredrik Averpil !
Качаем здесь ⬇️
https://github.com/fredrikaverpil/Qt.py/tree/stubs/stubs/Qt
Не думаю что стоит устанавливать Qt․py из этого репозитория. Он там не обновляется. Так что забираем только файлы .pyi.
За актуальность этих файлов тоже не ручаюсь, но большинство методов там имеются.
Установка:
🔸 Вариант 1:
- находим куда установлен сам модуль Qt․py, это будет одинокий файл который так и называется Qt․py
- кидаем директорию рядом с ним (если есть доступ на запись). Должно получиться так:
📁 site-packages\
📄 Qt.py
📁 Qt\
...
🔸 Вариант 2
- копируем директорию Qt куда угодно
- пробиваем путь к ней в настройках энвайронмента в переменную PATH так, чтобы путь был ДО директории Qt.
Закинуть можно и в свою домашнюю директорию. Если скопируете сюда:
~/stubs/Qt
То переменную пишем так
export PATH=~/stubs:${PATH}
После этого IDE должна распарсить stubs-файлы и автокомплиты появятся 😎
#qt#libs#tricks
🌊 GuAsia Winner Has Arrived at Songkran. Congratulation winners!🇹🇭
From the leaderboard to the land of water fights and tradition, our GuAsia winners have officially landed in Bangkok to experience the legendary Songkran Water Festival - live and in person! 🛫💧
A round-trip ticket to Bangkok from April 13 to April 15 to experience one of the most iconic cultural events on Earth has already been sent straight to the winner’s wallet, along with a personal notification. ✈️
🏆 As part of Gumart’s biggest campaign ever, Gu Go Global, this was Asia’s turn to shine—and the energy was real.
🏁With more giveaways coming to every continent, your chance might be just around the corner!
#GuGoGlobal#GuAsia
⏱ 2 DAYS LEFT — Don’t Miss This! 🚨
💥 The clock is ticking. Only 48 hours remain before our GuAsia Mini-Game officially closes.
❗️ What’s at stake?
Top 5 players on the leaderboard will secure exclusive rewards, including real-world travel experiences, not just digital prizes.
🌍 This isn’t just a game.
It’s your chance to turn activity into real movement, rewards into real journeys, and rankings into real recognition. 👀
🔥 Final push starts NOW:
1️⃣ Invite more friends
2️⃣Climb the leaderboard
3️⃣Lock in your spot
⏰ 2 days left.
Once it’s over — it’s over.
#GuGoGlobal#GuAsia#FinalCountdown
🌊 Gumart in Songkran – Thailand 🇹🇭
🌐#GuGoGlobal Campaign – Taking Web3 to the Heart of Culture!
📍 Checkpoint: Songkran Festival, Bangkok, Thailand
One of our GuAsia winners has just shared their unforgettable journey at the legendary Songkran Festival in Bangkok - after receiving their exclusive reward from the #GuGoGlobal giveaway. 😱
From vibrant street parades to joyful water fights, this was more than just a trip - it was a moment where Web3 met real-world celebration, and Gumart became part of the experience.⭐️
💡 This is what Gu Go Global is all about: bringing crypto utility to real life, through people, places, and culture.
🎉And yes - more giveaways are coming to every continent. Your city might be next.
#GuGoGlobal#GuAsia#Songkran
🎉 GuAsia Activation: Fly to Songkran Festival with Gumart!🇹🇭
As part of Gumart’s biggest-ever global campaign, Gu Go Global (April–May 2025), we’re bringing the celebration to Asia with a special giveaway!📈
✈️ Prize: Round-trip flight ticket to Bangkok, Thailand, to experience the iconic Songkran Water Festival live! 💧
🗓 Duration: April 8 - April 13
📌 How to join: Top 3 referral leaderboard in Asia will receive special prizes – including a flight to Songkran!
Be bold, be global. This is your moment. See you in Asia!🔼
#GuGoGlobal#GuAsia#SongkranFestival