simulton / QSchematic

A library that allows creating diagrams such as flowcharts or even proper engineering schematics within a Qt application.
https://simulton.com
MIT License
231 stars 60 forks source link

Connect after rotation #42

Open tprohor opened 1 year ago

tprohor commented 1 year ago

In demo application: after demo1 figure rotation to some angle it is impossible to connect wire to figure

Tectu commented 1 year ago

Hi,

Thanks for reporting this. Could you add a small video / screencap illustrating the issue just to be sure that we're talking the same thing? Something similar to #33.

tprohor commented 1 year ago

https://github.com/simulton/QSchematic/assets/29174324/77dde9fa-c0cc-4176-9b50-159f3f6a062d

tprohor commented 1 year ago

And another problem: demo crash at close event image

Tectu commented 1 year ago

The crash on close has been fixed in 2045bf291fdd56f4cf8a3f98d08e2aef7770909a - thanks!

Regarding the connection issue: This is a side-effect of the snap-to-grid policy. I think the best course of action is to add a "magnetic" feature: When drawing a wire, getting close to a connector will lead to a successful connection. Currently, wire connection points are restricted to the grid.

tprohor commented 1 year ago

Thank you!