prashant
5th November 2009, 18:09
Related To: PYQt 4.6.1
I have to create a widget as shown in the image. You can call this widget as a ramp/gradient maker. I am planning ti implement this using graphicsview/graphicsitem. Please point me out the right direction to implement this widget.
Functionality:
1. Clicking on the gradient open color dialog with color that has been clicked, and a new color is inserted a give horizontal/vertical point.
2. you can move particular color by using small circle pointers and you can delete an entry by using small cross box.
3. Increasing the size of dialog, by stretching it or maximizing it, increases the size of ramp widget also.
4. There is an option of drawing the ramp vertical or horizontal. (second image)
Drawing/painting a gradient is not a problem, but implementing the functionality of circle pointers is concerned.
I have to create a widget as shown in the image. You can call this widget as a ramp/gradient maker. I am planning ti implement this using graphicsview/graphicsitem. Please point me out the right direction to implement this widget.
Functionality:
1. Clicking on the gradient open color dialog with color that has been clicked, and a new color is inserted a give horizontal/vertical point.
2. you can move particular color by using small circle pointers and you can delete an entry by using small cross box.
3. Increasing the size of dialog, by stretching it or maximizing it, increases the size of ramp widget also.
4. There is an option of drawing the ramp vertical or horizontal. (second image)
Drawing/painting a gradient is not a problem, but implementing the functionality of circle pointers is concerned.