Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ExtrudedTextMesh is not a type
Forum Updated to NodeBB v4.3 + New Features

ExtrudedTextMesh is not a type

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 824 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.
  • T Offline
    T Offline
    Tom_H
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    1
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

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

      T 1 Reply Last reply
      3
      • ? A Former User

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

        T Offline
        T Offline
        Tom_H
        wrote on last edited by
        #3

        @Wieland That worked, thank you!

        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