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

Drawing items rotation enhancement #3619

Open
braza2004 opened this issue Aug 8, 2024 · 2 comments
Open

Drawing items rotation enhancement #3619

braza2004 opened this issue Aug 8, 2024 · 2 comments

Comments

@braza2004
Copy link
Contributor

I have noticed that drawing items such as lines, rectangles etc. do not rotate about their center, rather, they rotate about a corner. This makes rotating items inconvenient as you have to reposition them every time you rotate them. I was hoping someone could inform me of the where abouts of the target function and file in the code base and ill fix it myself; I tried to find it but couldn't.

@grossmj
Copy link
Member

grossmj commented Aug 8, 2024

The rotation itself is handled by Qt. In GNS3 we call the setRotation() method on QGraphicsItem: https://doc.qt.io/qt-5/qgraphicsitem.html#setRotation

@braza2004
Copy link
Contributor Author

I see, let me see if I can manually adjust the position every time the setRotation() function is called. Also it would be really helpful if you could share your email with me, I have something important to discuss.

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