PDA

View Full Version : Widget to edit a QGradient



crazytux
25th June 2015, 14:06
Hello all,
I'm new to PyQt and wondering how I can create a widget to edit a QGradient like in teh picture below

11242
So far I have been thinking at using a QGraphicView and drawing all items on it, making the markers movable.
Is there a better (i.e. simpler) way?

Thanks

anda_skoa
25th June 2015, 14:14
That's probably the easiest way, given that most of the mouse handling for dragging the markers/handles is already covered by the graphics view framework.

Cheers,
_