-
Notifications
You must be signed in to change notification settings - Fork 54
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
API that's open to developers (binding_helper) needs more documented #2
Comments
I think changing the python_qt_binding loadui implementation for PySide in a way so it does not need the 3rd parameter would be a better solution. |
Comment by @DorianScholz in answers.ros.org:
I wanted to give it a try but before even reaching the point, I haven't been able to load |
Having given up making test class, instead I tested the current Changing this line in rqt_bag from:
to
yields:
This indicates that the loading mthods of |
@DorianScholz I couldn't exactly visualize your suggestion. Could you write a simple pseudo code? |
@130s Your approach was correct, this is how it should be called: loadUi(ui_file, self) For this to work, it needs to take a similar approach to the PyQt version, which uses the header file entry from the ui-file to find the appropriate module to load. But I'm not sure whether the PySide/Qt API of QUiLoader makes the "header file" entry of the ui-file available. Figuring this out and if possible implementing this automatic module importing would be the right approach here, but too time consuming for me at the moment... |
@DorianScholz I see. I can also try when I get to have time. |
A few missing documents:
python_qt_binding.loadUi
should obligate the 3rd arg, sincePySide
binding requires the 3rd arg in order to incorporate custom widget classes, whereasPyQt
doesn't (Related discussion)QT_BINDING
,QT_BINDING_MODULES
,QT_BINDING_VERSION
) missing docThe text was updated successfully, but these errors were encountered: