Results 1 to 4 of 4

Thread: Qt4: Sorting QAbstractItemVew inherited view

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Location
    Frankfurt / Germany
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4: Sorting QAbstractItemVew inherited view

    Hi,

    i think my proxy is fine, because if i use my proxy with a standard QTableView,
    then sorting works.

    My model emits dataChanged signal and that works fine. So my view gets the updates.

    I think maybe i have forgotten to overwrite some methods in my view.
    I do not know which methods are called from the (proxy)model if sorting is in progress. dataChanged and currentChanged or rowsRemoved or rowsInserted aren't called.

    Do i manually have to connect my view to some slots ?
    I thought if i call pView->setModel(pProxy) all these connections are done implicitly (because inserting/removing and updating date works fine) ???

    Greetings,
    Nando

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt4: Sorting QAbstractItemVew inherited view

    Hard to say without seeing any code. Maybe you are not connected to layoutChanged() or some other signal...

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.