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. Need help in stackview refreshing of screens during pop operations
Forum Updated to NodeBB v4.3 + New Features

Need help in stackview refreshing of screens during pop operations

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 2 Posters 551 Views 2 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.
  • P Offline
    P Offline
    Praveen.Illa
    wrote on last edited by
    #1

    Hi Team,

    I have a multiple qml files (say A, B, C, D,......).
    Using stackView, I have push the qml files to stack [A -> B -> C].
    But When I do pop operation, the top most item will be destroyed i.e., C and the next item will be visible on the stack i.e., B.

    My query is, how can I refresh the visible screen during pop operation i.e., When popped, the screen C is destroyed and screen B is to refresh and display new data ?

    I am not very comfortable in qml and any sample code will be helpful.

    Thank You

    1 Reply Last reply
    0
    • P Praveen.Illa

      @fcarney
      Thank you for your response.
      The onVisibleChanged is calling for push operations as well. I want it in pop operations.
      For the second option, will it be possible to provide pseudo code

      fcarneyF Offline
      fcarneyF Offline
      fcarney
      wrote on last edited by
      #5

      @Praveen-Illa I am so sorry. I posted the wrong link yesterday. doh!

      https://doc.qt.io/qt-5/qtquick-modelviewsdata-modelview.html
      This is what I meant to post. lol

      1 Reply Last reply
      0
      • fcarneyF Offline
        fcarneyF Offline
        fcarney
        wrote on last edited by
        #2

        Check to see if "visible" changes when it shows B again:

        onVisibleChanged: {
            console.log(visible);
        }
        

        You could do a refresh here if this changes.

        Or you could make your source objects have properties that fire signals so it would update automatically. Models do this and can update the data in the Views in QML.

        P 1 Reply Last reply
        0
        • fcarneyF fcarney

          Check to see if "visible" changes when it shows B again:

          onVisibleChanged: {
              console.log(visible);
          }
          

          You could do a refresh here if this changes.

          Or you could make your source objects have properties that fire signals so it would update automatically. Models do this and can update the data in the Views in QML.

          P Offline
          P Offline
          Praveen.Illa
          wrote on last edited by Praveen.Illa
          #3

          @fcarney
          Thank you for your response.
          The onVisibleChanged is calling for push operations as well. I want it in pop operations.
          For the second option, will it be possible to provide pseudo code

          fcarneyF 2 Replies Last reply
          0
          • P Praveen.Illa

            @fcarney
            Thank you for your response.
            The onVisibleChanged is calling for push operations as well. I want it in pop operations.
            For the second option, will it be possible to provide pseudo code

            fcarneyF Offline
            fcarneyF Offline
            fcarney
            wrote on last edited by
            #4
            This post is deleted!
            1 Reply Last reply
            0
            • P Praveen.Illa

              @fcarney
              Thank you for your response.
              The onVisibleChanged is calling for push operations as well. I want it in pop operations.
              For the second option, will it be possible to provide pseudo code

              fcarneyF Offline
              fcarneyF Offline
              fcarney
              wrote on last edited by
              #5

              @Praveen-Illa I am so sorry. I posted the wrong link yesterday. doh!

              https://doc.qt.io/qt-5/qtquick-modelviewsdata-modelview.html
              This is what I meant to post. lol

              1 Reply Last reply
              0
              • P Praveen.Illa has marked this topic as solved on

              • Login

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