Link two models in PyQt

I’m new to python programming.Learning on own, with google and you guys help.

Now working on a API project.need to query a list of tasks on UI and on selection of item It should query details of that task.

Its working that way.But I want to keep this task execution in background and show other names on UI. I drew a picture of it.

Here is detailed picture

Screen shot of my UI


Thanks to Yasin for Dark Orange theme.

Here Instead of task nums,I want to show Shot details

But the execution must use task item but on display it should show shot details.

In simple words, I want to show Display list model on UI but when User click,that signal should send tasklist item to execute next query. How can I access the it?

how are you intending to link these two models? If you click task001, how would you even know which shot to display? where is the connection theorectically?

[QUOTE=TheMaxx;26851]how are you intending to link these two models? If you click task001, how would you even know which shot to display? where is the connection theorectically?[/QUOTE]

Using Index value? or a proxy model?
My idea is,
we query tasks,shots seperately and feed them in seperate models.
will show display_list.
If I click on Proj_Shot_Dept_002,its index value is 1… so I want to send tasklist(index of 1) as signal parameter.
I’m googling got some possible ways like “widget dta mapper” or a delegate method…
But Im very new to Python n PyQt…so still couldn’t get way to solve it.