Hello,
can anybody tell me how can I apply marching ant effect to the rubberband rectangle of the QGraphicsView Untitled.png?
Hello,
can anybody tell me how can I apply marching ant effect to the rubberband rectangle of the QGraphicsView Untitled.png?
when setting pen for drawing rectangle first use QPen::setDashOffset to achieve required effect.
first understand my question I want marching ant effect on the rubberband's rectangle that is inbuilt facility of QGraphicsView?
and actually I dont know how to get the object of the rectangle of the rubberband of the QGraphicsView.
Just set the drag mode:
QGraphicsView::setDragMode()I don't remember if it will give you a marching ant effect though.
You could achieve it by using a QTimer in combination with Mareks suggestion.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks