Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-115

Repainting of the UI is not triggered when value of Qul::Property is changed in C++

    XMLWordPrintable

Details

    • be02f4da8d66f7cbd4b32757a39507cdcc1559b9, 522db7eb6c79158731576ad8051b890509ab2b9d, 7a181c4aed13abcdd1063498fd781357a6559715

    Description

      Repainting of UI does not get triggered when value of Qul::Property of Qul::Singleton is changed in C++ which utilizes the Qul::Application::update() method to run the QUL. For example, if this value of property is used for changing the state, the value seems to be updated correctly, as it returns the correct value when called, UI does not however get repainted. Using timer (or clicking a mousearea etc.) in QML triggers repainting but it does not repaint if "nothing else happens on QML side".

      Way to reproduce:
      1) Build and run the attached example with Qt for MCUs 2.2.0
      2) Text in UI does not get changed (even though value of Qul::property "state" is changing).
      3) Uncomment the lines in QML file to enable the timer
      4) Rebuild and run the example again with Qt for MCUs 2.2.0
      5) The text is changing in the UI as would be expected

      Attachments

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

        Activity

          People

            foxxx Tuukka Kettunen
            foxxx Tuukka Kettunen
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes