qml version of visibility gone

Daker Fernandes Pinheiro dakerfp at gmail.com
Mon Sep 10 13:08:37 UTC 2012


Hi!

You could use a Row <http://qt-project.org/doc/qt-4.8/qml-row.html> element
and play with the visibilities as you are describing.

Cheers,

Daker Fernandes Pinheiro
http://codecereal.blogspot.com



2012/9/8 Reza Shah <rshah0385 at kireihana.com>

> Hi,
>
> Background:
> I have two buttons with display order side by side: [A][B]
> I like to have the final display like [B]
>
> In android i can set the visibility of button A to gone, then the B
> will occupy button A space.
>
> I tried to achieve the same thing in qml using anchor.
> So when A visibility is false, i set button B left anchor to parent.left.
> Is this correct way? or there is better alternative?
>
>
> Regards,
> Reza
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120910/a97c0ff7/attachment.html>


More information about the Plasma-devel mailing list