Making a qt3d cube appear transparent
-
Hi,
I create a cursor in qt3d using the following lines of code:
@QGLBuilder cursor_builder;
cursor_builder <<QGL::Faceted;
cursor_builder <<QGLCube(0.15);
cursor=cursor_builder.finalizedSceneNode();@I bind a texture to this cube using
@handcursor.setImage(QImage(QLatin1String("D:/transparent.png")));
std::cout<<"constructor called"<<std::endl;@Now I want to do two things:
- Make the cube appear transparent
- Bind a transparent texture onto the cube