Город МОСКОВСКИЙ
00:02:51

How to create & convert a QtDesigner QRC file to Python

Аватар
Python Молодежь России
Просмотры:
50
Дата загрузки:
02.12.2023 11:43
Длительность:
00:02:51
Категория:
Обучение

Описание

*** Convert codes ***
UI to PY: pyuic5 -x file.ui -o file.py
QRC to PY: pycc5 file.qrc -o file_rc.py

*** Steps ***
1. Make sure your Python has pyqt5 & pyqt5-tools installed.
pip list
If not run:
pip install pyqt
pip install pyqt5-tools

2. Move your images to your project dir

3. Create & populate the qrc file
(either in the Qt Resource Browser or just typing it and saving with .qrc)

4. Populate the UI with the images and save ui file.

5. Convert!
UI to PY: pyuic5 -x file.ui -o file.py
QRC to PY: pycc5 file.qrc -o file_rc.py

*** Music ***
Animenz Piano Sheets: Unravel Tokyo Ghoul OP [Piano]
https://www.youtube.com/watch?v=sEQf5lcnj_o

Рекомендуемые видео