В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны.
Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2.
Например, в PyQt4 и PySide есть метод
QHeaderView.setResizeMode
Для PyQt5 и PySide2 они были благополучно переименованы в
QHeaderView.setSectionResizeMode
Чтобы применить этот метод следует использовать такой код
from Qt import QtCompath
header = self.horizontalHeader()
QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed)
Унификация загрузки UI файлов:
# PySide2
from PySide2.QtUiTools import QUiLoader
loader = QUiLoader()
widget = loader.load(ui_file)
# PyQt5
from PyQt5 import uic
widget = uic.loadUi(ui_file)
# Qt.py
from Qt import QtCompat
widget = QtCompat.loadUi(ui_file)
Хорошо что таких моментов не много и их легко запомнить.
Полный список можно посмотреть в таблице.
#qt#tricks
🤖 Для Compose Material3 Adaptive добавили поддержку каноничных layout на основе библиотеке Navigation 3. Пока вышла первая альфа версия, но уже можно начинать работать. Подробности в анонсе
#compose#navigation
Axborot izlash jarayonida foydalanuvchi ehtiyojlari dinamik va doimiy o‘zgaradi
Foydalanuvchilar onlayn ma’lumot izlayotganda, ularning ehtiyojlari ko‘pincha o‘zgarib boradi. Dastlab foydalanuvchi aniq savol yoki maqsadga ega bo‘lishi mumkin, lekin sayt yoki ilovani ko‘rib chiqarkan, yangi ma’lumotlar ularning tushuncha va maqsadlarini o‘zgartirishi mumkin. Shu sababli onlayn ma’lumot izlash jarayoni foydalanuvchi va tizim o‘rtasidagi doimiy “muzokara”ga o‘xshaydi.
Dizaynerlar bu jarayonni hisobga olishlari kerak. Foydalanuvchi faqat bitta, to‘g‘ridan-to‘g‘ri yo‘l bilan maqsadiga yetadi deb o‘ylash noto‘g‘ri. Buning o‘rniga, moslashuvchan navigatsiya tizimlarini yaratish lozim, ular turli kirish nuqtalari va yo‘llarni qo‘llab-quvvatlasin.
Masalan, foydalanuvchi:
- qidiruv tizimida chiqqan sahifaga olib boruvchi (deep link) orqali saytda kirishi,
- bosh sahifaga kirib ko‘rishi,
- kalit so‘z bo‘yicha qidiruv qilishi,
- turli bo‘limlarni o‘rganishi mumkin.
Samarali navigatsiya ushbu turli xatti-harakatlarni qo‘llab-quvvatlashi va foydalanuvchi ehtiyojlariga moslashishi kerak.
Shuningdek, foydalanuvchining vaqtini optimallashtirishni ham yodda tutish muhim. Barcha navigatsiya variantlarini bir vaqtning o‘zida ko‘rsatish foydalanuvchini chalg‘itishi mumkin. Shuning uchun, eng muhim linklar va funksiyalarni asosiy foydalanuvchi turlari va asosiy vazifalarga qarab ustuvor qilish tavsiya etiladi.
@uxceluz
#UX#Navigation
👋Приветствую, товарищи мои!
I'm having some health issues🤒🍂 Wish me soon recovery, please!
Will be back asap!
✈️ In the comments you'll find navigation to the channel, just in case you miss learning Russian with me.
📎 Oh, and one more thing: if you'd like to join our RCRussian chat (with audios 🎧🗣👇 where you can also ask questions about Russian, Russia, or just chat), and you're not here to sell crypto, run scams, or solicit clients for shady businesses, let me know by contacting our bot @RCR_feedback_bot.
Natalie😀💓
#admins_letter
#navigation
Hi, товарищи мои!
🔻You noticed the channel has been a bit silent recently. I'm having some issues🤒 and not able to post daily.
🔻Please understand, 🤗 and forgive! Don't disappear into the vastness of the internet without a trace – I've memorized all your names (just kidding!).
🔻It's fun here sometimes, and always useful for learning Russian.
I'll be back to my regular posting schedule in the near future asap.
• Вы и глазом не успеете моргнуть!
[vy i gla-zam ni us-pe-yi-te mar-gnut']
You won't even have time to blink!
Обняла! Приподняла! Покружила! Поставила на место!
📎 In the comments you'll find navigation to the channel, just in case you haven't checked all my posts😉.
📎 Oh, and one more thing: if you'd like to join our RCRussian chat (with audios 🎧🗣👇 where you can also ask questions about Russian, Russia, or just chat), and you're not here to sell crypto, run scams, or solicit clients for shady businesses, let me know by contacting our bot @RCR_feedback_bot and I'll send you the link😉.
Natalie❤️
#admins_letter
#navigation
🌎 Each autumn, millions of common chaffinches migrate from northern Europe to Mediterranean regions, sometimes flying over 3,000 kilometers in search of warmer climates. These small songbirds rely on internal magnetic sense and visual landmarks to guide their journeys. ✨
#birds⚡#migration⚡#navigation
👉subscribe Interesting Planet
👉more Channels
Совершенно обалденный пост, в котором по шагам разбирается работа GPS. Вы только взгляните на все эти интерактивные визуализации. Страшно становится, когда прикидываю, сколько в один этот пост было вложено труда. Ну и GPS, конечно, теперь ещё более внушительной штукой выглядит.
#gps#navigation
The open-source mobile app Organic Maps is used by millions of people on both the Android and iOS platforms. In addition to featuring offline maps (generated from OpenStreetMap cartography) and turn-by-turn navigation, it also promises its users greater privacy than proprietary options. However, controversial decisions taken by the project's leaders, feelings of disenfranchisement among contributors, and even accusations of embezzlement have precipitated a divide in the community, leading to a new fork called CoMaps.
Hike, Bike, Drive Offline Navigate with Privacy | CoMaps
https://www.comaps.app/
#Navigation#Maps
📹Разбор Jetpack Navigation 3 - настоящая навигация для Compose (21 мин)
Месяц назад Google анонсировала навигацию специально разработанную под Compose и которая должна решить все боли. В видео показываю её возможности, делюсь своим мнение и рассказываю про недочеты, которые надеюсь что решат до стабильного релиза
#AndroidBroadcast#navigation#jetpack#compose
🌍 The highest possible latitude is 90°, found only at the North and South Poles. Longitude, measured east or west, wraps fully around Earth—reaching up to 180° in either direction. ✨
#coordinates⚡#mapping⚡#navigation⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 Some ancient Polynesian maps were made with sticks and shells, showing ocean swells and island positions. These unique charts helped navigators cross vast distances without modern tools. ✨
#cartography⚡#navigation⚡#history⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🚀Релиз Jetpack Navigation 2.9.0
🛠 Значительные переработки под капотом для улучшения поддержки KMP
👉 Добавлена поддержка обработки deep link из Kotlin Common кода
👉 Улучшения API
#jetpack#jetpackupdate#navigation#compose#kmp