[SailfishDevel] show/hide pulley menu items

Matthew Vogt matthew.vogt at jolla.com
Mon Mar 10 20:57:45 UTC 2014


Hi Vivian.

All visual elements in QML inherit the properties of QtQuick.Item, described here: http://qt-project.org/doc/qt-5.1/qtquick/qml-qtquick2-item.html

Thanks,
Matt
________________________________
From: devel-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] on behalf of Vivian Brégier [Vivian.Bregier at are-ata.org]
Sent: Tuesday, March 11, 2014 5:43 AM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] show/hide pulley menu items

Thank you, this works just fine.

And I always have at least one menuitem visible, so there is no need to hide the menu itself, but it is a good thing to keep in mind.

Strangely, https://sailfishos.org/sailfish-silica/qml-sailfishsilica-menuitem-members.html does not reference this attribute.


2014-03-10 13:05 GMT+01:00 <dcaliste at free.fr<mailto:dcaliste at free.fr>>:
There is the visible attribute that can be set of each menuitem. In addition, don't forget to put the visible attribute of the pulley menu itself to false if there is no visible menuitem, to avoid empty pulley menu.

Damien.

À Mon Mar 10 2014 11:29:13 GMT+0100 (CET), Vivian Brégier a écrit :
>Hi,
>
>I am trying to have the pulley menu of my app depend on the app context.
>I want some menuitem to be hidden when a certain condition is false.
>
>I did not find any attribute in MenuItem class to do this.
>Is it possible to do it in qml ? Maybe using javascript ?
>
>Thank you for your help.
>
>--
>Vivian Brégier
>http://www.are-ata.org/Vivian.vcf
_______________________________________________
SailfishOS.org Devel mailing list



--
Vivian Brégier
http://www.are-ata.org/Vivian.vcf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140310/5e7eba9d/attachment.html>


More information about the Devel mailing list