Re: [PySide] SVG image follow mouse w/o drag and drop?

2016-08-05 Thread Purma Jukka
Hi, You don’t have to do anything in QGraphicsView, you can have mousePressEvent in Image to toggle floating on and off. These events get QGraphicsMouseEvents as parameters and these have the information you need about position of cursor or mouse press. So, in short, remove mousePressEvent from

Re: [PySide] How do I hide a QGraphicsItem's "focus outline"?

2016-08-11 Thread Purma Jukka
> Ch'Gans kirjoitti 11.8.2016 kello 2.54: > > On 11 August 2016 at 10:38, Kevin Cole wrote: >> When my QGraphicsItem receives a mousePressEvent, it draws a >> dotted-line rectangle around the item. Is there a way to suppress >> that? (I want the item selected / focused, but I don't want to see

Re: [PySide] QListView: drag&drop custom item

2016-09-19 Thread Purma Jukka
Hi, since you asked any ideas... In my app I have had to re-invent drag&drop for some items (because I want to drag QGraphicsItems in scene while having all kinds of effects on the items they are connected while keeping the main event loop running etc. ) and learned a habit to give up when I did