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. Internal Error when reusing my own qml component
Forum Updated to NodeBB v4.3 + New Features

Internal Error when reusing my own qml component

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 178 Views
  • 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.
  • yinhao.qianY Offline
    yinhao.qianY Offline
    yinhao.qian
    wrote on last edited by
    #1

    I have defined my own qml type as MyIcon.qml as follows, and its only job is to display an icon.
    58554840-65e3-4a81-b12c-6191d31acc1b-image.png

    I have another qml file named MyButton.qml, and I'm attempting to embed an icon inside the button by adding a MyIcon component.
    df4cffce-bb51-402f-8542-24339ecc7c37-image.png

    However, after I've added the MyIcon block, this error popped up...
    e55b6f02-57f3-40be-9f73-380ad7449c35-image.png

    Does anyone know what causes this error?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Drooke
      wrote on last edited by
      #2

      What version of QtCreator are you using? It may be related to the front-end enum declaration.

      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