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. Screen does not update

Screen does not update

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

    Hi, I'm a using Qt version 5.15, and vxWorks.
    When running for a long time, the screen did not update.

    To summarize the current situation:

    • This phenomenon occurred three times, each occurring after 5, 20, and 10 hours of operation.
    • Only the screen is not updated and other operations proceed normally.
    • Functions in code written in qml are not connected to a 'signal slot' but are called directly from C++ using 'QMetaObject::invokeMethod'.
    • Tasks written in C++ work fine.
    • When the qml function is called, a message should be logged because 'console.debug' was used.

    So my prediction is that the Qml operation is not normal, so the screen is not updating.

    So my question is whether my thoughts are correct and what is the order of QML operation when calling a QML function in C++.

    dheerendraD 1 Reply Last reply
    0
    • K kim333

      Hi, I'm a using Qt version 5.15, and vxWorks.
      When running for a long time, the screen did not update.

      To summarize the current situation:

      • This phenomenon occurred three times, each occurring after 5, 20, and 10 hours of operation.
      • Only the screen is not updated and other operations proceed normally.
      • Functions in code written in qml are not connected to a 'signal slot' but are called directly from C++ using 'QMetaObject::invokeMethod'.
      • Tasks written in C++ work fine.
      • When the qml function is called, a message should be logged because 'console.debug' was used.

      So my prediction is that the Qml operation is not normal, so the screen is not updating.

      So my question is whether my thoughts are correct and what is the order of QML operation when calling a QML function in C++.

      dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      @kim333

      May be it is issue from your system ? Or Since you are calling qml methods directly from C++, something may be hung or got into deadlock ? There is no specific order of call. It is just method call. If it is multithread application & it may be work slightly differently.

      Best approach is write a small QML application. Use timer to continuously update the qml with some random text. Observe for the period you said. This may give you the hint on where the issue exist.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      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