Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QML not evaluating signals when Android screen off
Forum Updated to NodeBB v4.3 + New Features

QML not evaluating signals when Android screen off

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 841 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
    bozo
    wrote on last edited by
    #1

    Hello, I am binding a property defined in C++ to a property in QML. When the screen of the Android device is turned off or the app is put into background the signals comming from the C++-object will no longer be evaluated. Once the app in open again the backlogged signals are evaluated and the QML application continues working.

    Is it possible to have signals work in QML while the app is in the background or the Android device is turned off? It is working for the C++ part of the application. I am using Qt Quick 2 and load my C++ classes with qmlRegisterType into QML.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! On Android, applications are paused when they're in the background. This is to save power. Applications that run code in the background are called "Android services", see Android Services.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bozo
        wrote on last edited by bozo
        #3

        Thanks for your reply! My problem is that the C++ part of the application is still running and actively sending signals to QML. (constant stream of data received with TCP). The signals send from C++ are accumulated and create a huge backlog when the application is resumed, sometimes causing it to crash. Can i somehow disable all signals when the application is in the background?

        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