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

How to embed canvas into Pyqt5 #67

Open
huyidao625 opened this issue Jul 15, 2024 · 6 comments
Open

How to embed canvas into Pyqt5 #67

huyidao625 opened this issue Jul 15, 2024 · 6 comments

Comments

@huyidao625
Copy link

Hi , How to embed a drawing canvas in Pyqt5, retaining drag, selection, resizing, and more.

@rgerum
Copy link
Owner

rgerum commented Jul 15, 2024

If you mean a matplotlib plot in PyQt5 you can have a reference at the matplotlib documentation:
https://matplotlib.org/stable/gallery/user_interfaces/embedding_in_qt_sgskip.html

@huyidao625
Copy link
Author

Sorry, there's something wrong with my description. I mean how to embed Pylustrator's canvas into pyqt. because I like can drag and drop and change size.

@huyidao625
Copy link
Author

I think I solved that problem,I write a demo based on version 0.9.4 . https://github.com/huyidao625/pylustrator-embedqt5

@rgerum
Copy link
Owner

rgerum commented Jul 16, 2024

I would appreciate if you would not copy the pylutrator code into your repository. Either you make a fork or just have it as a dependency. To make it clear for users where the code is coming from.
Also change the readme to not include my text. Either remove it or mark it directly as a quote.

Happy to see that you solved the problem.

@huyidao625
Copy link
Author

I'm a novice programmer, please accept my apologies. I deleted the old repositories and fork your repository . Thank you so much for making such good software and open source it。

@huyidao625
Copy link
Author

Thanks again, I'm sorry I didn't use the latest branch , it based on v0.9.4, this is my forked repository: https://github.com/huyidao625/pylustrator

image

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

No branches or pull requests

2 participants