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

QtCore.Qt namespace is an unresolved reference on IDEs.

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.3, 5.14
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Platform/s:
      Windows

      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

        For Gerrit Dashboard: PYSIDE-1052
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              ctismer Christian Tismer
              Reporter:
              saelyth Alejandro Gutierrez Almansa
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There is 1 open Gerrit change