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

pyside2-uic: missing imports QGradient, QLocale, QRectF

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.14.2
    • PySide
    • None
    • python 3.8.2 (common, not venv), pyside2 5.14.1 from pip
    • All
    • 2f975b39a967cd2ac1c234a200eb6b9c11d8b5b2 (qt/qtbase/dev) 92c19f742d10b7b31dcc9f703aa8d771e661d6ab (qt/qtbase/5.15)

    Description

      Error:

      NameError: name 'QDate' is not defined

      Reproduce QDate error:

      In QT designer create a MainWindow, place Date/Time Edit widget, in properties of widget change property "MaximumDate" or maybe anything related else.

      pyside2-uic a.ui > a.py
      

      Reproduce QGradient error:

      It is related with MainWindow's palette. I don't really have idea what I did with palette. Because I had stylesheet that do something same. qss just in case:

      QMainWindow {background-color: qlineargradient(spread:pad, x1:0, y1:0.494, x2:1, y2:0.477, stop:0 #e0fae8, stop:1 #D8F3E1);} 
      

      Example with both cases attached.

      Attachments

        1. miss_imp.py
          6 kB
        2. miss_imp.ui
          8 kB
        3. supertest.py
          60 kB
        4. supertest.ui
          83 kB

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              novd V D
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes