Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Making a qt3d cube appear transparent
Qt 6.11 is out! See what's new in the release blog

Making a qt3d cube appear transparent

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 619 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunil.nair
    wrote on last edited by
    #1

    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
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved