Skip to content

Conversation

@davidlatwe
Copy link
Contributor

@davidlatwe davidlatwe commented Jan 23, 2019

Hi, @jchanvfx

This PR implemented the vendoring of Qt.py (#93), since my environment was using PyQt5, so I made this attempt.

I tested with the example.py in both PyQt5 and PySide2 environment and all functions work. Should be also support PySide and PyQt4 as well, and won't affect the development.

davidlatwe and others added 14 commits January 23, 2019 12:08
The `QtWidgets.QGraphicsSceneMouseEvent` class doesn't have `setModifiers()`
method in PyQt5, and cannot find a workaround for it.

So the only option to stick with PyQt5 for now was to drop the modifier
remapping, but judging from the event passing flow and running a few tests,
it looks like those remapping code didn't have any effect to the UI
function.

Should be safe to remove them.
While using PyQt5 binding, the node attribute `type` caused "TypeError: 'str' object is not callable"  in `QGraphicsScene.createItemGroup`, rename to `type_` solved this.
@davidlatwe
Copy link
Contributor Author

Comment edited. ☝️

@davidlatwe
Copy link
Contributor Author

BTW, this also solved #92.

@jchanvfx jchanvfx merged commit 50b05ee into jchanvfx:master Feb 13, 2019
@jchanvfx
Copy link
Owner

jchanvfx commented Feb 13, 2019

great work thanks for contributing @davidlatwe 😸

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants