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

TrImageItem will emit a signal when the image is moved but not when resized #104

Closed
RussBerg opened this issue May 12, 2023 · 1 comment
Closed
Assignees

Comments

@RussBerg
Copy link
Collaborator

RussBerg commented May 12, 2023

Example situation:
UI displays specifics about the current TrImageItem in the plotter such as
center (X,Y), number of pixels (X,Y), range in microns (X,Y) and the size of each pixel for X and Y in microns

If the parent of the plot wants to wants to update these parameters if the image is moved or resized they can do so by handling the SIG_ITEM_MOVED signal, but this is only if the image item is moved, if the TrImageItem is resized no signal is emitted.

here is a visual of what I am talking about, resizing the pattern image in the center of the plot should emit a signal indicating the change, that signal handler then updates the scan parameters on the UI.
image

@PierreRaybaut
Copy link
Collaborator

Fixed by ebfe7c3

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

Successfully merging a pull request may close this issue.

2 participants