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
> 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
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