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. Custom Objects for QML & QList
Forum Updated to NodeBB v4.3 + New Features

Custom Objects for QML & QList

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 125 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.
  • saitejS Offline
    saitejS Offline
    saitej
    wrote on last edited by
    #1

    Hi

    I need to have a custom type for QList and also access it as from qml ( probably as qmlRegisterUncreatableType).

    If I want to have a custom type for QList, it needs to have a copy constructor and for qml type (if I need touse qmlRegisterUncreatableType), it needs to be derived from QObject.

    From Qt documentation:

    For a custom type,

    • a public default constructor,

    • a public copy constructor, and

    • a public destructor.

    Is it possible to have a same type for both QList and a QML type? Did I miss out anything?

    Thanks

    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