[SailfishDevel] Sailfish - refresh listView on previous page, combobox how to

Bartosz Remisz bartrem737 at student.polsl.pl
Wed Oct 2 11:06:18 UTC 2013


I am trying to make small app for Sailfish, but I encountered some issues. Please notice I am completely new in QT and Sailfish project, on the other hand, I work with Android, Windows Phone and iOS.

Firstly, there are two pages. On first there is SilicaListView, on second some other controls that let add new item to list. Data for list are stored in C++ code. I have problem with refreshing list when poping back. Is there any method similiar to notifyDataSetChanged in Android or reload in iOS, that can be invoked? I know there are signals but I wish rather not to use them in current implementation – only refresh from qml after pressing button (if possible). 

On the second page I have put combobox, but I have no idea how to make it working with my data. Suppose there are C++ methods that returns items count and string to display for each of them. I thought it would work similar to listView (model, delegate Item), however it is not. Could you please give me some advice where to find more information about how to work with non static items for combobox? Any help would be greatly appreciated.

I have also noticed that when I put IconButton inside Column and set height, next item doesn’t appear below, but in somewhere in the middle of IconButton. Is there a need to set y value for next item or is it a bug? 

Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131002/72e55f8f/attachment.html>

More information about the Devel mailing list