Questions tagged [qgraphicslineitem]

The QGraphicsLineItem is a inherit class of QGraphicsItem that represent a graphic line.

6 questions
1
vote
1 answer

Making QGraphicsLineItem less fiddly to drag

As shown below, I've created a QGraphicsLineItem that is draggable. The problem though is that selecting the line is quite fiddly. I'd like to increase the "selection radius" of the line so that its becomes easier to drag from PySide import QtGui,…
Olumide
  • 5,397
  • 10
  • 55
  • 104
1
vote
1 answer

How to animate line around fixed point in Qt?

I'm trying to animate a line around a fixed point in Qt. I assume I need to use the QPropertyAnimation class to do this but cannot figure out which property to use. For clarity, here's what I'm trying to do. | (5, 10) | / | / | …
GotAQtQ
  • 13
  • 2
0
votes
0 answers

QGraphicsLineItem dotted line with stroke

How can I use QGraphicsLineItem not as a continuous line but like a dotted line with animated stroke (from 1 to 3 px)?
Chris P
  • 2,059
  • 4
  • 34
  • 68
0
votes
1 answer

How to change QGraphicsLineItem programmatically

I'm working on resizeable and moveable overlay items, at the moment on a cross-hair. To make it resizeable I need to change parameters of my two QGraphicsLineItems, my cross-hair consists of. But calling the functions like setLength(), setP1(),…
GregPhil
  • 475
  • 1
  • 8
  • 20
0
votes
1 answer

How can I delete this QGraphicsLineItem when context menu is open in a QGraphicsPixmapItem?

I'm developing a GUI where you can connect nodes between them except in a few special cases. This implementation works perfectly fine most of the time, but after some testing i found that, when I connect one QGraphicsPixmapItem with another through…
dpoloa
  • 15
  • 3
0
votes
1 answer

How to setObjectName of the QGraphicsLineItem

I would like to set ObjectName to my LineItem but when I use self.line.setItemName('%d' % i) it is not work and stop the program over there. Can someone tell me how to do? Plz def createLineItem(self,start,end): global i i +=1 …
余昌翰
  • 13
  • 3