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. How to trigger "add" transition in Listview if my model is a c++ model ("QSortFilterProxyModel" )?
Forum Updated to NodeBB v4.3 + New Features

How to trigger "add" transition in Listview if my model is a c++ model ("QSortFilterProxyModel" )?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 269 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.
  • D Offline
    D Offline
    divaindie
    wrote on last edited by
    #1

    Hi All,
    in my Application iam exposing a cpp "QSortFilterProxyModel" to qml,then iam using this as a model to "listview" in QML.
    my problem is , if i add a new row(using insertrows() method ) into table, "add" transition (i have assigned a "transition" with "PropertyAnimation" to "add" property ) in listview is not showing up(similar case with removerows()).
    what might be the issue ?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Do you use beginInsertRows() and endInsertRows() in your row adding method?

      (Z(:^

      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