Thread
:
Help me to code for Sailfish OS
View Single Post
rob_kouw
2020-09-09 , 20:27
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#
140
Originally Posted by
coderus
i dont know a way to do this in pure qml without c++ code
So, the question was:
- There is a page with a ListView, with a model from database contents
- Tapping on an item opens a new Dialog, where the database item could change
- popping the dialog leaves an old listview that needs refreshing
Now, I found your GitHub page on callbacks:
https://gist.github.com/CODeRUS/5235...bfaf0bafbeb7cd
Could I push the dialog with a callback to a function that would update the listview? Or is that not what the callback is for? Something like:
pageStack.push(Qt.resolvedUrl("DialogPage.qml"), {callback: updateListViewAfterDialog })
Update: yes, this seems to work!
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it
Last edited by rob_kouw; 2020-09-09 at
20:59
.
Quote & Reply
|
The Following User Says Thank You to rob_kouw For This Useful Post:
juiceme
rob_kouw
View Public Profile
Send a private message to rob_kouw
Find all posts by rob_kouw