Results 1 to 7 of 7

Thread: QAbstractProxyModel: adding a virtual column

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QAbstractProxyModel: adding a virtual column

    You need to reimplement setData() and emit a dataChanged() signal for the artificial index whenever any of its dependencies get updated. Alternatively simply monitor for dataChanged() signal from the source model and if any of the changed indices affect the artificial column, emit dataChanged() for it.

  2. The following user says thank you to wysota for this useful post:

    ultim8 (28th August 2008)

Similar Threads

  1. hidden QListView column suddenly visible
    By edb in forum Qt Programming
    Replies: 10
    Last Post: 27th January 2006, 08:00

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.