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 <rshah0...@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@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to