Results 1 to 6 of 6

Thread: Multi Dimensional QList

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Multi Dimensional QList

    Hi, This must be an easy prob,,,, but my head's not working much today, so posting the query

    I want to have a 2D array of integers using QList,
    something like QList< QList<int> > > twoDArray; The main purpose of creating the array thru QList is that i dont have the dimensions at the time of declaration. They have to be populated later.

    Do I have to iterate each and every element of twoDArray and initialize it witht he correct value ?? Will QVector be better ??

    Can someone show a example for the same ?
    Last edited by aamer4yu; 30th March 2007 at 12:24.

Similar Threads

  1. QVariant, QList, QSettings
    By TheKedge in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2007, 15:50
  2. using Qlist with a class
    By Havard in forum Qt Programming
    Replies: 10
    Last Post: 24th February 2007, 19:38
  3. QList crash in destructor
    By mclark in forum Newbie
    Replies: 7
    Last Post: 6th December 2006, 15:27
  4. Accessing QList Objects
    By magikalpnoi in forum Qt Programming
    Replies: 7
    Last Post: 21st September 2006, 20:43
  5. Values not being appended in a QList
    By Kapil in forum Newbie
    Replies: 5
    Last Post: 21st April 2006, 10:20

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.