Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-8256

rethink/research views attach model architecture

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • Model and Rewriter
    • None

      Now views can exist even they are not attached which means their model() pointer can be a nullptr.
      Often the views are used to create QML UIs which then often call functions which then calling the model.
      QML means these calls can be delayed calls.
      Also, some views need to update their UIs via QTimers where we have the similar problematic delayed calls into the model.

      One way would be to forbit own QML UIs and QTimers and the model somehow provide specialized version of them.
      For example, the model()->generateTimer() would create a timer which is stoppped if it is not attached anymore.
      And for example, model()->generateQuickWidet() which is disabled if the model is not attached.
      Maybe there are better ideas, but I like to see a brainstorm round about this, because it generated a lot of crashes in the past.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thohartm Thomas Hartmann
            tjenssen Tim Jenssen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes