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_...@yahoo.com>
>À : "interest@qt-project.org" <interest@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@qt-project.org
>http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to