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. [Android] Call qml function on cpp signal while app is paused/suspended/blocked.
Forum Updated to NodeBB v4.3 + New Features

[Android] Call qml function on cpp signal while app is paused/suspended/blocked.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 114 Views
  • 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.
  • V Offline
    V Offline
    vinadenenko
    wrote on 5 Apr 2024, 11:06 last edited by
    #1

    Android related. Let's say there is an CPP class in which there is a signal eventReceived() . An instance of this class was created in QML like

    MyClass {
        id: myClass
        function onEventReceived() {
            console.log("Event received")
        }
    }
    

    Everything works great. Next, lock the phone screen or minimize the application and emit a signal. All the code written in the c++ part works (let's say you have some code before the emit), but as soon as the qml code should start executing, everything stops. And this code block will only start executing when the application is opened again (resumed).

    Somewhere I can find some kind of behavior configuration or in which direction should I dig?

    1 Reply Last reply
    0

    1/1

    5 Apr 2024, 11:06

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved