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

Wrong import in Qt for Python documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • None
    • 5.15.1
    • Documentation
    • None
    • All
    • a633ba483890f91cf949c2b384274175043415cd (pyside/pyside-setup/5.15)

      Chapter 3 - Create an empty QMainWindow tutorial is wrongly importing the qApp singleton from PySide2.QtCore, resulting in

       ImportError: cannot import name 'qApp' from 'PySide2.QtCore 

      Correct way would be to import PySide2 directly.

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

            rafaellehmkuhl rafaellehmkuhl
            rafaellehmkuhl rafaellehmkuhl
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes