PDA

View Full Version : Qt_qml_tableview



ganeshgladish
27th May 2013, 09:01
hi ,


i have developed my database using Qt c++...and i have sent my data to qml..... but i want to display my data in rows and columns...what can i do ..please provide some solutions..

wysota
27th May 2013, 17:30
Use a delegate that draws multiple columns.

ListView {
model: someModel
delegate: Row {
Text { width: 200; text: col1 }
Text { width: 200; text: col2 }
Text { width: 200; text: col3 }
}
}

ganeshgladish
28th May 2013, 11:42
thank you for your reply,

i want this to be in table manner...

wysota
28th May 2013, 11:54
This IS a "table manner".

ganeshgladish
29th May 2013, 12:09
i want like this...

i am retrieving the data from database as structure ...i want to display it in qml as like in attached file....