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

rethink/research views attach model architecture

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes