We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

ComboBox with >6 menuItems does not trigger onClicked

asked 2014-05-31 18:34:37 +0200

pa4wdh gravatar image

updated 2014-07-07 15:26:58 +0200

jiit gravatar image

I"m trying to make my first app, and one of the things i need is a comboBox with 7 menuItems. I noteced that whenever i choose a menu item when the programs runs it does not trigger the onClicked event (checked with console.log("clicked !") ). When i remove one option, no matter which one, it works as expected. GUI-wise there seems to be a big difference: up to 6 items are displayed as a menu on the current page, with 7 and more it creates a new page on the pagestack.

Do i have to do something special to get onClicked events with 7 or more menuItems ?

edit retag flag offensive close delete

Comments

Not an answer since I'm not a developer, but I read UI guidelines and in general I think that more than 3 entries is too much. It gets difficult to swipe down. Why don't you put 3 entries on top and 3 on bottom? Maybe you can group them by feature.

magullo ( 2014-05-31 19:57:37 +0200 )edit
1

I know the UI guidelines say i should avoid this, but in my case i need to stick to a standard and the standard offers 7 choices. My question is not about the menu on the top or bottom of the screen but about the "ComboBox" element which you can see for example in the settings, sounds and feedback, and then the vibration setting.

pa4wdh ( 2014-05-31 20:11:21 +0200 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2014-06-01 09:01:56 +0200

coderus gravatar image

updated 2014-06-01 09:02:14 +0200

Discussed tons of times in developer mailing list. Solution: http://sailfishdev.tumblr.com/post/86417133152/long-list-inside-combobox

edit flag offensive delete publish link more

Comments

Thanks for your answer coderus, and nice to see you here :-)

Because you're mentioning the mailing list i searched there and found two posts about this specific problem. In one there was a comment that this is a bug, does that mean i can expect it to be fixed in the next release ? As far as i know that is planned for June so then it's better just to wait instead of modifying my app :-)

pa4wdh ( 2014-06-01 20:10:10 +0200 )edit

It's not so much bug, it's like undocumented feature. While count <= 6 ComboBox using ContextMenu to show items, but if count > 6 all ContextMenu contents are exported to ListModel and used in ListView inside new Dialog. And because of that it can't emit signals to MenuItems :)

coderus ( 2014-06-01 20:16:56 +0200 )edit

I've just change my app to the method described on your website and it works now \o/ Thanks

pa4wdh ( 2014-06-01 22:48:49 +0200 )edit
0

answered 2014-06-03 07:21:31 +0200

mjones gravatar image

Thanks for your report. This will be fixed in a future update (after update 7).

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-05-31 18:34:37 +0200

Seen: 349 times

Last updated: Jun 03 '14