Data binding
-
Hello,
is there a possibility to bind data in a QTableView.
In Silverlight and XAML is it possible for an itemscontrol with:
@{Binding Path=listData}
<ItemsControl x:Name="lstData" Background="White" ItemsSource="{Binding Path=listData}" ItemTemplate="{StaticResource ItemTemplate}" />@Has Qt and QML an equivalent possibility?
Thanks,
BernhardEdit: please use @ tags around code sections; Andre
-
Yes, though I have have no idea how similar to XAML it is (never used that). Take a look at [[doc:QDataWidgetMapper]]. It allows you to bind normal widgets to an item model (that also provides the data for a QTableView or another view, if you want).