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. Developing Lifecycle for QML Component or JSObject. How?

Developing Lifecycle for QML Component or JSObject. How?

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

    Hello all!
    I've got an issue when the use case looks like - the action that should be performed has steps (for example Step1, Step2, Step3, etc) and every step should be having separate handler and if there are presented or downloaded custom JS script this action should be using custom instead of default

    The best example is how in iOS handle UIViewController creating action where defined lifecycle schema and every point of this schema might be overriding. I need to develop something like this for QML component. What is the solution for this issue?

    I know how to override JSObject methods through something like this

    Object.assign({}, JSObject, fieldToUpdate);
    

    But how to do it for QML component? Suggestions?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bogong
      wrote on last edited by
      #2

      Solution found. Issue closed. Developed prototype based on mixed functions from JS and C++ without signals.
      Example is here https://github.com/ArboreusSystems/arboreus_examples/tree/master/qt/QML/Lifecycle/Lifecycle_v1

      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