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

QtCore.Qt namespace is an unresolved reference on IDEs.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.13.1
    • 5.12.3, 5.14.0
    • PySide
    • None
    • Windows
    • 01b43dc3d93e632c3c42fb8e1105f200b9cee2ae (pyside/pyside-setup/5.13)

    Description

      On IDEs like Pycharm, code completion doesn't works for just that specific namespace, and it also throws a warning if we enable Unresolved References warnings from (File / Settings / Editor / Inspections / Python). Those are the 2 main issues that I've found so far. 

        You can reproduce that issue with the next example. 

          from PySide2.QtWidgets import QApplication
          from PySide2.QtCore import Qt
      
          if _name_ == "_main_": 
               QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
      

       If you type QApplication it will complete code without issues, no warnings. If you do the same with Qt then there's no suggestions, and you get a warning.

      Attachments

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

        Activity

          People

            ctismer Christian Tismer
            saelyth Alejandro Gutierrez Almansa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes