PDA

View Full Version : drawing a 3d button in 2d view



wagmare
3rd May 2009, 12:26
hi friends,
can anybody please give me some useful tips on how to draw a graphicsItem a 3d button in 2d view as i attached the image with this thread ..
the main problem is in the button the three sides of the cube should have one color and center has another color ...
thanks in advance ..

aamer4yu
3rd May 2009, 12:37
Use the image to render on the button ;)
You will need different images for diferent states like hover, pressed, etc .

wagmare
3rd May 2009, 13:19
like pixmap item ..?

aamer4yu
3rd May 2009, 14:02
You will need to override paintEvent of your button, and draw the pixmaps yourself...based on state.