[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: qml version of visibility gone
From: Daker Fernandes Pinheiro <dakerfp () gmail ! com>
Date: 2012-09-10 13:08:37
Message-ID: CAHhpqgbYQwoCe2oTkSUOUvFr7XSoT82xMc_ZYGQ2Scd-xCGjZQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@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
>
[Attachment #5 (text/html)]
Hi!<br><br>You could use a <a \
href="http://qt-project.org/doc/qt-4.8/qml-row.html">Row</a> element and play with \
the visibilities as you are describing.<br><br>Cheers,<br><br clear="all">Daker \
Fernandes Pinheiro<br><a href="http://codecereal.blogspot.com" \
target="_blank">http://codecereal.blogspot.com</a><br>
<br>
<br><br><div class="gmail_quote">2012/9/8 Reza Shah <span dir="ltr"><<a \
href="mailto:rshah0385@kireihana.com" \
target="_blank">rshah0385@kireihana.com</a>></span><br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">
Hi,<br>
<br>
Background:<br>
I have two buttons with display order side by side: [A][B]<br>
I like to have the final display like [B]<br>
<br>
In android i can set the visibility of button A to gone, then the B<br>
will occupy button A space.<br>
<br>
I tried to achieve the same thing in qml using anchor.<br>
So when A visibility is false, i set button B left anchor to parent.left.<br>
Is this correct way? or there is better alternative?<br>
<br>
<br>
Regards,<br>
Reza<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
</blockquote></div><br>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic