The Wayback Machine - https://web.archive.org/web/20201220223306/https://github.com/paceholder/nodeeditor/issues/230
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

Node becomes selected only if moved or mouse released #230

Open
DexterMagnific opened this issue Apr 26, 2019 · 2 comments
Open

Node becomes selected only if moved or mouse released #230

DexterMagnific opened this issue Apr 26, 2019 · 2 comments

Comments

@DexterMagnific
Copy link

@DexterMagnific DexterMagnific commented Apr 26, 2019

Hi,

When clicking on a node on the view, it gets selected only when releasing the mouse button or start moving it.

Is it possible for the node to get selected as soon as there is a mouse press on it ?

Thanks

@paceholder
Copy link
Owner

@paceholder paceholder commented Apr 30, 2019

Sorry, I do not see any benefit from doing that. Could you explain?

In your internet browser you don't follow the link immediately as you press your mouse button. The link is being opened as soon as you release the button. I followed this common workflow.

Dmitry

@DexterMagnific
Copy link
Author

@DexterMagnific DexterMagnific commented Apr 30, 2019

The drawback of your approach is that currently clicking a Node deselects the previous one, and you must wait until releasing the mouse before the new one gets selected.

So you get an intermediate state in which the previous one is deselected and the new one not yet selected.

I have in my application a QWidget that shows the "properties" of a Node when it is selected, and I'm plugged on the selectionChanged() signal of the scene.

With the current behavior, I see my widget empty on click (because selectionChanged() is emitted for an empty selection) and filled of release (another selectionChanged). So every time I change Node there is a "flickering" because of the intermediate state where no Node are selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.