ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #08877
Re: how can i create in QML a table textinutboxes with background
Hello
You should use such code:
Rectanngle {
color: "green"
// width, height
TextInput {
anchors.centerIn: parent
}
}
Parent can be image, rectangle, borderimage and so on (any background
available, not only color).
Next, if you want to create table, use
Column {
TitleRow {} // You should implement it yourself
Repeater {
model: 5
TableRow { } // You should implement it yourself
}
}
Where "TitleRow" is smth like:
Row {
// All staff you need
Image {}
Label {}
Button{}
}
I hope you will understand the idea.
BUT - I can't imagine good (!) UI with 25 text inputs....
BR, Roman.
2014-07-06 18:04 GMT+04:00 Diogo Figueira <benfica.goed3@xxxxxxxxx>:
> hi my name is Diogo and wanted to know how i can make a table with 6 rows
> 5 tables and 25 textinputboxes, with background.
>
> I've tryed almost everything to put an background to the textinput boxes,
> but still i could not get it right.
>
> My code for the textinputbox is there
>
> TextInput {
> y: 20;
> font.pixelSize: 10
> text: "Computador"
> cursorVisible: true;
> border.color: "#c0c0c0"
>
>
> }
>
> can some one plzz tell me how i can make them and put a background color
> to them??
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
>
>
References