1 Attachment(s)
drawing a 3d button in 2d view
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 ..
Re: drawing a 3d button in 2d view
Use the image to render on the button ;)
You will need different images for diferent states like hover, pressed, etc .
Re: drawing a 3d button in 2d view
Re: drawing a 3d button in 2d view
You will need to override paintEvent of your button, and draw the pixmaps yourself...based on state.