-
Notifications
You must be signed in to change notification settings - Fork 31
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
Remove PyQt from cross3d or abstract Qt use so you can choose to use PyQt or PySide #3
Comments
Maybe https://github.com/mottosso/Qt.py is what you are looking for? |
Yeah, someone showed me that module the other day. It seems like a good way to implement the second option. I know we are going to the PyQt4/PyQt5 feature when adopting Maya 2017 or 2018. |
I know this post is two years old - but PySignal might be an interesting alternative to qt if you're primarily utilising it for the signaling. I notice you're using QTimers and QColors along with a couple of other types from qt which would need refactoring out though. Out of interest, is this repo still being updated? |
Internally we have continued to develop and improve the code used in this. Maya has been improved quite a bit and small improvements in the other DCC's. However at the moment our internal code has diverged quite a bit and will require re-integrating into the github repo. The plan is to eventually update github with all the changes and start using it as the main repo for cross3d, but need to find the time to do that. We have already migrated our internal cross3d to use Qt.py which addresses the second option. I was considering using a import mechanism similar to QtSiteConfig in Qt.py to allow users to choose if they use Qt signals or implement their own mechanism. It would attempt to I was not aware of PySignal, but that seems interesting. I'm going to have to look into it. I had to create my own mechanism for keeping track of if any signals were currently connected so I could disable the DCC callbacks if they were not needed. While important, it always felt a bit hacky that I couldn't figure out how to do it directly in Qt. |
Currently cross3d is dependent on PyQt4 which is not easily available in most DCCs. We need PyQt for our database api, so we end up compiling a compatible version for each DCC. PyQt seems like a unnecessary requirement, so I would like to remove it.
I'm not sure when I will have time to work on this, so I'm adding this issue with requirements for any merge requests anyone is able to make.
The merge request should conform to one of the following:
The text was updated successfully, but these errors were encountered: