[Qt5-feedback] Item Views Next Gen

Stephen Kelly steveire at gmail.com
Wed May 18 13:22:44 CEST 2011


daniel.molkentin at nokia.com wrote:

> On May 18, 2011, at 08:56 , ext Andre Somers wrote:
> While I understand that ItemViews NG can be seen as a precursor to QML
> and Qt Components, I am wondering about the development of more
> complicated item views for QML. While on a mobile phone, a tree view and
> even a table view are not good UI, on a desktop this is a different
> story. Will we see table and tree type views in QML?
> 
> It's ongoing research:
> https://qt.gitorious.org/qt-
components/desktop/blobs/master/components/TableView.qml

I've just had a quick read of the code. 

It seems like it only works with QML ListModel type models at the moment, 
but not QAIM. ( root.model.get(rowIndex) won't work for a QAIM).

It seems like there's only one role of data possible per column, and it must 
be specified in a TableColumn element in the header property.

Does the research include plans to make it possible to use QAIM with these 
QML views, or is that considered a dead end? Does it include work to make it 
possible to make multiple roles of data available? Does it include work to 
get features from the QTableView like re-ordering columns, resizing columns, 
selecting multiple rows/items (QML has no concept of a selection model) etc? 
Does it include making new features possible like sticky columns that don't 
move when I scroll horizontally, or zooming out and in?

I'm not trying to be annoying, just trying to understand the scope of what 
you're trying to do with this stuff. Tables, trees and model-view separation 
are difficult. You might have hard work and spaghetti code ahead if you want 
to make them all available in QML.




More information about the Qt5-feedback mailing list