[Interest] QML: How to create reusable containers?

Harri Pasanen harri at mpaja.com
Wed May 16 16:25:45 CEST 2012


CommonDialog looks quite similar, available at least in Qt components 
com.nokia.symbian

/Harri

On 05/16/2012 04:15 PM, Aekold Helbrass wrote:
> Hi All!
>
> Lame question which I cannot figure out myself: how to create reusable
> container components in QML?
> Here is what I have in mind:
>
>      Rectangle {
>          Header {
>          }
>
>          <body goes here>
>
>          Row {
>              anchors.bottom: parent.bottom
>              anchors.right: parent.right
>              Button { text: "OK" }
>              Button { text: "Cancel" }
>          }
>      }
>
> And I want some kind of body component go between header and buttons,
> so I could reuse the same dialog style and layout for all dialogs I
> need.
>
> Browsed though demos and examples but nothing looks like this, if I
> missed it or there are any examples on the internet - links are
> appreciated.
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list