[Interest] Re : QML + BorderImage + auto resize

BOUCARD Olivier boucard_olivier at yahoo.fr
Sat Apr 14 13:30:10 CEST 2012


Hi,

Yes this is possible. Here a code snippet:

BorderImage {
  id: border
  width: content.width
  height: 20

  Text {
    id: content

    anchors.top: parent.top
    anchors.bottom: parent.bottom

  }

}




>________________________________
> De : Tibo W <tibo_wcc at yahoo.com>
>À : "interest at qt-project.org" <interest at qt-project.org> 
>Envoyé le : Samedi 14 avril 2012 4h24
>Objet : [Interest] QML + BorderImage + auto resize
> 
>
>Hi,
>
>
>is Qt-qml still an active list ?
>
>
>I'd like to know how to have a BoderImage dynamically resized based on its content (which is a Text in my case).
>When the text increases, I'd like the BorderImage to increase as well. And I'd like to have one direction fixed, so it grows only in one direction.
>
>Is it possible ?
>
>
>Thanks for your input.
>_______________________________________________
>Interest mailing list
>Interest at qt-project.org
>http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120414/7483e15f/attachment.html>


More information about the Interest mailing list