Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
Most of the signals today will be in Vip section
Join #Vip pin and unmute
$100 lifetime promo
Lets start the day with more USD okay? Tap tap 🔥 if you guys are ready.
To Join click on the pinned message and contact admin
Most of the signals today will be in Vip section
Join #Vip pin and unmute
$100 lifetime promo
Lets start the day with more USD okay? Tap tap 🔥 if you guys are ready.
To Join click on the pinned message and contact admin
Most of the signals today will be in Vip section
Join #Vip pin and unmute
Lets start the day with more USD okay? Tap tap 🔥 if you guys are ready.
To Join click on the pinned message and contact admin