0

in my homepage I have a listview that display some data and refreshes the data and it works fine. What I need to do is to refresh this list when I come back to the app after going out. I have already written the code for refresh in my function called reloadView(), I just need to know if there is any method in qml that detects when the app come backs to foreground where I can call this reloadView(), if not is there any other way to achieve this?

 This is my homepage.qml structure


Page {
    //some code
    function reloadView()
    {
        //This is the function which I need to call when app comes to foreground
    }
    Container {
        layout: DockLayout {
        }
        ScrollView {
            id: homePageScroll
            Container {
                layout: DockLayout {
                }
                ListView { 
                    //somecode
                }
            }
        }
    }
Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
Francis F
  • 3,157
  • 3
  • 41
  • 79

1 Answers1

0

In Qml, Fullscreen() is signal emitted when the application is restored to fullscreen.

check this link

Ankur
  • 1,385
  • 11
  • 21