ExtrudedTextMesh is not a type



  • Hello. I'm trying to use ExtrudedTextMesh by modifying the Qt 3D Scene3D QML example. I just added the following lines to the AnimatedEntity.qml file:

    ExtrudedTextMesh {
        id: textMesh
        depth: 1
        text: "Hello"
    }
    Transform {
        id: textTransform
        translation: Qt.vector3d(0, -1, 0)
    }
    Entity {
        id: textEntity
        components: [textMesh, material, textTransform]
    }
    

    But I'm getting the runtime error "ExtrudedTextMesh is not a type". The required QML import statement is already there (Qt3D.Extras 2.0) as well as the required module in the project file (QT += 3dextras).

    Am I missing something? Thanks.

    Qt version: 5.9.2 MinGW 32 bit



  • Hi! It's a bug in the documentation. You need to use import Qt3D.Extras 2.9.



  • @Wieland That worked, thank you!


Log in to reply
 

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