[SailfishDevel] Silica QML objects that can have a menu property
es.rosenberg+sailfishos.org at gmail.com
Sat Oct 12 21:52:11 UTC 2019
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
Container and Item and are not documented here:
To me using Item or Container for this would make most sense actually.
Thanks again for your time,
Op vr 11 okt. 2019 om 16:16 schreef Thomas Tanghus <thomas at tanghus.net>:
> On torsdag den 10. oktober 2019 06.30.33 CEST E.S. Rosenberg wrote:
> > Hi all,
> > My question may be very simple - is ListItem the only type of object that
> > may display a text on a page that can have a "menu" property? I went over
> > the Silica reference quickly and I didn't find any other similar items.
> > The reason I ask this is that I have a single item I am displaying to
> > which I am adding a context menu and semantically it just seemed weird
> > that I would have to put that inside of a ListItem to be able to add a
> > menu: ContextMenu property.
> > Or did I miss some other object that does support this property?
> You can set the 'container' property to the parent of the menu as done in:
> There it's a BackgroundItem:
> Or did I misunderstand you?
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel