Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Talk:Selection List for Qt and Windows Phone

From Wiki
Jump to: navigation, search


Croozeus -

Hi Somnath,

Good work, we need more such articles.

It would be also good to add the list of visual differences between the components of the platforms. For example, here in WP7 selection list you have feasibility of app title being visible, showing the current selection text, etc.. would be good to have a para describing that these are available in WP7 selection list and not in QML and vice-versa.

croozeus 04:37, 15 November 2011 (EET)

Croozeus -

Just one more thing - instead of using the hard coded value in QML (y:51) it would be advisable to demonstrate using anchors.

croozeus 04:50, 15 November 2011 (EET)

Hamishwillee - Comparing like with like

Hi Somnath

Thanks, this is a useful article.

  1. I find it unhelpful that the examples are quite different (and this is not quite captured by the images). Yes they both display a selection list, but Qt displays the list in a SelectionDialog which is launched from a SelectionListItem, and then returns the selected result to the SelectionListItem. While in Windows Phone you're just displaying the list in the view and then the selected item is displayed in a text box that follows. There is no need to do it like this - your Qt example could just as easily have been a ListView followed by a textview, and you could have used SelectionListItems for each of the seasons in the listview. I woud change this
    • As a note, the SelectionListItem is supposed to be used as I describe above. While you can use it as a "standalone control" (and they do in the "official" example) this is an odd usage.
  2. The Summary is a "good start" at delivering what Croozeus refers to "would be good to have a para describing that these are available in WP7 selection list and not in QML and vice-versa.". To be more precise I think that the comment on the way that the WP control auto expands when you have 5 or more items is very useful - you could go on to explain that this is something you could implement in Qt using states in your ListView - however its not platform behaviour.
  3. Other comparisons that I'd like to see between the components:
    • Can both do horizontal scroling lists (Qt can)
    • Do they support kinetic scrolling if you go off screen with your elements. Can you change the scrolling behaviour? (not on Qt)
    • Any limits on element numbers
    • can you change the appearance of the list elements. In Qt you can use the "standard" SelectionListItem for native look and feel or you can use your own delegate. What can you do on WP?
    • Explain that in Qt View owns model and/or delegate. Model owns elements. Compare to how WP models a list. (this is probably actually most important point, because it conceptually explains the architecture for a new user)
    • etc!
  4. Once you've got a "Comparison between the two element types" your summary can be quite simple.

Make sense?



hamishwillee 01:05, 22 November 2011 (EET)

Somnathbanik - Compatibility

This article is Compatible for both Windows Phone 7 and Windows Phone 8.

We will update the title accordingly.

somnathbanik 14:12, 5 June 2013 (EEST)

Hamishwillee - And content

Hi Somnath

Also great if you can update the text to say Windows Phone rather than WP7.

Fixes look good. As a rule if you update the SDK or devices just insert the most recent first - it is useful for people to know this works on the WP7.5 SDK. For devices they might only have Lumia 800 for example, so knowing it worked on that would remain useful.

Thanks again.



hamishwillee 09:21, 10 June 2013 (EEST)

Somnathbanik - And content

Hi Hamish,

I will keep this in mind, and will check/update all my articles.



somnathbanik 12:10, 10 June 2013 (EEST)

Hamishwillee - Thanks.

I did update most of them for the SDKs ... after this point.

I think for these Qt comparison articles, next WP version we should consider not updating them - porting from Qt is no longer so relevant. We might however consider if creating a new article covering the basic UI features might be useful. For example in this case we do a basic selection list. However there are heaps more things you can do with a selection list than this - for example we could cover how to change its appearance, other types of selection lists like "context sensitive menus", selection lists provided by other UI libraries - ie Windows Phone toolkit, coding4 fun etc. I'm sure there must be heaps of options.



hamishwillee 04:20, 11 June 2013 (EEST)


Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.