Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behavior mismatch between PyQt and PySide implementation of loadUi #104

Open
bpabel opened this issue Apr 25, 2017 · 1 comment
Open

Behavior mismatch between PyQt and PySide implementation of loadUi #104

bpabel opened this issue Apr 25, 2017 · 1 comment

Comments

@bpabel
Copy link

bpabel commented Apr 25, 2017

PyQt4.uic.loadUi provides support for custom widgets using the "Promoted Widget" feature of Qt Designer. The convention in PyQt4 is to specify the import module path using the header file section. For example, if mypackage.mymodule.MyWidget is the custom Widget, then in Qt Designer you would list the header file as mypackage/mymodule.h and the class name as MyWidget and loadUi would translate that to mypackage.mymodule.MyWidget.

The loadUi implementation for PySide in qtpy doesn't appear to support this behavior.

@ccordoba12
Copy link
Member

You're welcome to send a PR to fix/improve this. We provide a very simple implementation of loadUi for Pyside, just enough to provide compatibility with the the Glue project.

Spyder, on the other hand, doesn't use .ui files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants