Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1446

PySide6 compiles .ui to .py importing PySide2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.0.0
    • PySide, Tooling
    • None
    • Linux/X11

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            mailos Miloš Korenčiak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes