PDA

View Full Version : Graphic view and ProxyWidget ... signal problem?



giordi
4th September 2014, 14:32
Hi everyone.
I am working on a UI which needs a lot of freedom in the layout. The way I decided to do so is basically to use a grapich view and then control the grapich view items positions manually with
a layout I will write. If needed I can go in more detail in what I want to achieve.
Now every Item is basically a sub UI , so I use a ProxyWidget to feed a widget I want in the item.
It works fine but I get several problem.

10614

The drag doesnt work (of course the item is set as draggable) and I cannot interact with any of the
inner widgets of the item, like the line edit.

I might guess this is a signal related problem of the grapich view consuming the events or viceversa?
Anyone got an idea about that?
Cheers
M.

PS I can provide snipped of code if needed even tho for now is just a really rough test.

giordi
9th September 2014, 10:38
anyone got an idea? cheers

anda_skoa
11th September 2014, 10:35
Due to its duality there can always be weird things happening when using the proxy widget item.

But your use case sounds like it should work.
Have you tried having the proxy as a child of a different item that has the drag enabled?

Do you need any of the other features of graphics view such as scaling or rotating?
Otherwise you might be better of to just use freely positioned widgets instead.

Cheers,
_