Qt 6.11 is out! See what's new in the release
blog
Making a qt3d cube appear transparent
General and Desktop
1
Posts
1
Posters
619
Views
1
Watching
-
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