Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On one Page I have displayed ListView and on child Page I creating new records. When the child Page is Closed I would like to refresh the ListView. Is there some Signel which inform me when page get focus or something simmilar ? It's done in QML using the Page from Ubuntu.Components.

share|improve this question
    
Could you add your code snippets to your question, it will help us in choosing the right signal to send and where to register it. –  Sylvain Pineau Mar 18 at 12:48

1 Answer 1

 Connections{
     target: pageStack
     onCurrentPageChanged:{
         if( pageStack.currentPage === mainPage2) {
             print ("back on page mainPage2")

         }
         else {
             print ("exiting page mainPage2")
         }
     }
 }
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.