Unresolved references with python_qt_bindings

Hello everyone,

I'm programming GUIs for ROS and using the python_qt_bindings package, which allows me to create GUIs for both PySide and PyQt. But when I try to import a Qt module threw the package, the module gets red curled. An import from PyQt or PySide works well. Has any body a similar problem or even a Solution for me?
1 comment
Comment actions Permalink
I'm having the same issue. I suspect it's because python_qt_binding is a wrapper around both pyside and pyqt. It uses python black magic to achieve this and I suspect PyCharm is not smart enough to sort out what's happening:

# register all binding modules as sub modules of this package (python_qt_binding) for easy importing
for module_name, module in QT_BINDING_MODULES.items():
    sys.modules[__name__ + '.' + module_name] = module
    setattr(sys.modules[__name__], module_name, module)
    del module_name
    del module
prettyPrint(); I've just started using PyCharm myself so I have no idea how to fix it :(
0

Please sign in to leave a comment.