Description
I compile .ui file into .py file. The .py file reads:
-*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'ui_main_window.ui' ## ## Created by: Qt User Interface Compiler version 6.0.0 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ from PySide2.QtCore import * from PySide2.QtGui import * from PySide2.QtWidgets import *
It still imports PySide2. It crashes my application.
Compilation bash command:
...venv/lib/python3.8/site-packages/PySide6/uic my_ui_.ui -o my_ui.py -g python --from-imports