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:

    1. Make the cube appear transparent
    2. Bind a transparent texture onto the cube

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.