Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: Updating a view's proxy model when the source model changes

  1. #21
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Updating a view's proxy model when the source model changes

    What is the version of Qt you are using for this code?

    Just so that you know the code I posted works fine in Qt 5.0.2 and Qt 5.1.0, I can see the problem is with Qt 4.7.4 and Qt 4.8.1
    Last edited by Santosh Reddy; 4th September 2013 at 06:26.
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  2. #22
    Join Date
    May 2013
    Posts
    35
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Updating a view's proxy model when the source model changes

    Ah, yes. I thought to mention that at one point and it slipped my mind.

    Qt 4.8.5. No choice there. This is for an open source project I'm involved with and they're locked in to 4.8 for some reason. I pled the case to go to 5.0, but no luck.

  3. #23
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Updating a view's proxy model when the source model changes

    I am busy rest of the week, I will take a closer look some time early next week.
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  4. #24
    Join Date
    May 2013
    Posts
    35
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Updating a view's proxy model when the source model changes

    No worries. Thanks for all the effort so far. I learned a good bit in the process.

  5. #25
    Join Date
    May 2013
    Posts
    35
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Updating a view's proxy model when the source model changes [Solved]

    After recompiliing, it seems as though I finally have it running under 4.8.5. Not sure exactly why it was excluding the dropped item in the model, but it appears to run fine, now. Thanks again for all of the help.

Similar Threads

  1. Replies: 1
    Last Post: 29th August 2013, 06:41
  2. Source Model Ad Proxy Model
    By sajis997 in forum Qt Programming
    Replies: 1
    Last Post: 19th July 2011, 06:13
  3. Replies: 0
    Last Post: 16th November 2010, 10:55
  4. Model, View and Proxy
    By No-Nonsense in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2006, 09:50
  5. Filter Proxy Model to Autoupdate View
    By Big Duck in forum Qt Programming
    Replies: 1
    Last Post: 1st June 2006, 21:32

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.