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

Perspective View #36

Open
mottosso opened this issue May 30, 2016 · 0 comments
Open

Perspective View #36

mottosso opened this issue May 30, 2016 · 0 comments
Labels

Comments

@mottosso
Copy link
Member

Goal

One should be able to dive into an item and be given a dedicated overview of information only relevant to this item.

Like in Pyblish QML.

Implementation

There are two main hurdles to cross before this can happen.

  1. Make an item clickable in multiple places
  2. Implement the actual Perspective widget and fill it with data on click.

How to go about (1) is new territory to me. We can either handle this in the view, a QListView in this case, or in the delegate, a QStyledItemDelegate.

If handled in the view, then we could simply look up the position of the cursor to determine whether the click happened to the left, or to the right. The problem is communicating this information to the delegate such that it can highlight/animate it properly.

If handled in the delegate, then we can simply add widgets to the left and right sides and attach event handlers to each of them. The problem then is that we will have to find some method of still being able to select an item, and select multiple items, which is handled by the view.

So no matter how we go about it, there must be some form of information exchange between the view and the delegate, and I'm not sure which route is better.

@mottosso mottosso mentioned this issue Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant