Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Data binding
Qt 6.11 is out! See what's new in the release blog

Data binding

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    b.bauer
    wrote on last edited by
    #1

    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,
    Bernhard

    Edit: please use @ tags around code sections; Andre

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      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).

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved