<div dir="ltr"><div>Hi Thomas,</div><div><br></div><div>Thanks for your long answer and the many references, I guess my main point was a bit nit-picking in the sense that Semantically/Linguistically it does not seem to make sense to me to use a ListItem (yes it works, but if you were to tell anyone that is what you need to use I think they would also say "huh?")</div><div><br></div><div>Container and Item and are not documented here: <a href="https://sailfishos.org/develop/docs/silica/sailfish-silica-all.html/">https://sailfishos.org/develop/docs/silica/sailfish-silica-all.html/</a></div><div>To me using Item or Container for this would make most sense actually.</div><div><br></div><div>Thanks again for your time,</div><div>Eli<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op vr 11 okt. 2019 om 16:16 schreef Thomas Tanghus <<a href="mailto:thomas@tanghus.net">thomas@tanghus.net</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On torsdag den 10. oktober 2019 06.30.33 CEST E.S. Rosenberg wrote:<br>
> Hi all,<br>
> My question may be very simple - is ListItem the only type of object that<br>
> may display a text on a page that can have a "menu" property? I went over<br>
> the Silica reference quickly and I didn't find any other similar items.<br>
> <br>
> The reason I ask this is that I have a single item I am displaying to<br>
> which I am adding a context menu and semantically it just seemed weird<br>
> that I would have to put that inside of a ListItem to be able to add a<br>
> menu: ContextMenu property.<br>
> <br>
> Or did I miss some other object that does support this property?<br>
<br>
You can set the 'container' property to the parent of the menu as done in:<br>
<a href="https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/TimerPage.qml#L220" rel="noreferrer" target="_blank">https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/TimerPage.qml#L220</a><br>
<br>
There it's a BackgroundItem:<br>
<a href="https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/TimerPage.qml#L124" rel="noreferrer" target="_blank">https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/TimerPage.qml#L124</a><br>
<br>
Or did I misunderstand you?<br>
<br>
-- <br>
<br>
<br>
/Thomas_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></blockquote></div>