Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
🎯🚀#ABG began as a small idea fueled by big dreams. With a clear mission, a dedicated team, and strong community support, the project continues to grow with purpose. While we’re still in the development phase, our focus remains on building real solutions to real problems. We’re confident that, with persistence and collective effort, $ABG will evolve into a thriving ecosystem and achieve lasting success. The journey is ongoing, our commitment is unwavering. 🔥🔥
🔥https://x.com/abitcoingold/status/1924388768058130544