Results 1 to 2 of 2

Thread: Proxy models and slection models

  1. #1
    Join Date
    Sep 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Proxy models and slection models

    Hi,

    If i have one model with many proxies and I want the selection between the proxies to be coordinated, how do i do it? I guess that setting the same selection model won't help since the proxy models have different model indexes.

    Thanks
    Aviad

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

    Default Re: Proxy models and slection models

    No, unfortunately it is not an easy task to acomplish. You have to manually map selections between models using mapSelectionFromSource() and mapSelectionToSource().

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.