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. Public API for creating user defined basic types

Public API for creating user defined basic types

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 836 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.
  • P Offline
    P Offline
    Peter K
    wrote on last edited by
    #1

    As explained "here":http://stackoverflow.com/questions/15535694/how-to-create-custom-basic-type-in-qml, creating user defined basic types is not currently supported, but can be done through private parts of Qt Quick.

    I feel this is a limitation as I want to be able to define my own intuitive basic type that acts as a single construct, while still having different properties (like the Qt.vector3d with x, y and z). My issue with defining object-type properties is that its properties act separately (different signals, bindings, etc.). It also adds a level of indirection, which makes it a hassle to store the data in the property-holding class (instead of in the object of the property itself).

    Will the API for creating user defined basic types be made public anytime soon?

    In the meantime, can I go ahead and use the private API, or are there major changes planned?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Since it's getting to private API, you should rather ask this question on the interest mailing list, you'll find Qt's developers/maintainers there (this forum is more user oriented)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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