Results 1 to 10 of 10

Thread: FilterProxy model

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Posts
    99
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: FilterProxy model

    I dont know...I tried to implement the model as show in example but it somehow doesnt work...Can anyone tell me why not ? ...
    I attached the header and source files Im using...
    Thanks
    Attached Files Attached Files
    Last edited by gyre; 4th December 2007 at 14:02. Reason: updated contents

  2. #2
    Join Date
    Sep 2007
    Posts
    99
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: FilterProxy model

    I changed the files to ones that are in attachements...
    Filtering now works OK...but when I remove all characters from lineedit from which I control filtering the model does not get to the original state and ALL items are filtered...dont know why
    Attached Files Attached Files

  3. #3
    Join Date
    Sep 2007
    Posts
    99
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: FilterProxy model

    I have found a problem...it has to be checked whether the regexps are empty...
    see the attached code if youre interested...
    Attached Files Attached Files

Similar Threads

  1. Sharing Selections between Model and ProxyModel
    By mentat in forum Qt Programming
    Replies: 14
    Last Post: 27th January 2010, 17:31
  2. hierarchical model in a flat view
    By gniking in forum Qt Programming
    Replies: 4
    Last Post: 10th November 2009, 20:17
  3. Coin3d + Qt: SIGLNALs and SLOTs
    By vonCZ in forum Newbie
    Replies: 26
    Last Post: 15th May 2009, 07:34
  4. Help with Model View
    By weepdoo in forum Qt Programming
    Replies: 13
    Last Post: 12th October 2007, 10:32
  5. Model Choices review/questions
    By ucntcme in forum Qt Programming
    Replies: 1
    Last Post: 16th September 2007, 21:57

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.