Results 1 to 7 of 7

Thread: mapping manager

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Skopje, Macedonia
    Posts
    11
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: mapping manager

    Hi,

    Try Using QPair http://doc.trolltech.com/4.2/qpair.html

    You can use this class to connect two values of the lists.
    Iterate trough the frist list and the second and create another list
    of QPairs (from the selected names) that will connect the values.
    If you have a gui (lets say two list widgets) you'll just
    have to go trough the lists, see whats selected and
    create the list.
    This way you'll get linear structure which is easy to handle.

    Another way using QPairs is to create a list where
    the frist element is the name/index of the element of the
    first list and second element will be a list of names/indexes
    of the elements from the second list that are connected
    to that element from the first list.


    GREETZ, chombium

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

    sreedhar (14th February 2007)

Similar Threads

  1. object-relational mapping support?
    By brcain in forum Qt Programming
    Replies: 18
    Last Post: 28th January 2016, 11:42
  2. [itemView] QHeaderView lose mapping at column insertion
    By lauranger in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2006, 18:18
  3. Cannot attach region manager
    By bhm in forum Qt Programming
    Replies: 2
    Last Post: 24th May 2006, 12:31
  4. Replies: 4
    Last Post: 29th March 2006, 23:44
  5. writing a layout manager
    By jayw710 in forum Qt Programming
    Replies: 2
    Last Post: 15th February 2006, 23:53

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.