Results 1 to 3 of 3

Thread: Stroing class objects in a structure

  1. #1
    Join Date
    May 2013
    Posts
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Stroing class objects in a structure

    I have to use multiple object of a class.
    Hence i need to store and retrieve the class objects at run time.

    How can i store the class objects in a structure ? and retrieve them as required?

    Thanks.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Stroing class objects in a structure

    Qt Code:
    1. How can i store the class objects in a structure ? and retrieve them as required?
    To copy to clipboard, switch view to plain text mode 
    Any way you like in any structure that makes sense for your application. Obvious candidates are plain C arrays, vectors, linear linked lists, maps, hashes, trees...

  3. #3
    Join Date
    May 2013
    Posts
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Stroing class objects in a structure

    Obvious the structure would have an array to save the objetcs

    so can i get some code help on the same for storing objects in an array ?

    Class File is the name of class..

Similar Threads

  1. Serialize class objects to XML file and back
    By StarShaper in forum Qt Programming
    Replies: 2
    Last Post: 25th June 2012, 08:27
  2. problem using gui objects after leving the main class
    By ruben.rodrigues in forum Newbie
    Replies: 7
    Last Post: 17th June 2010, 17:43
  3. Instantiate objects only having their class name
    By victor.fernandez in forum Qt Programming
    Replies: 1
    Last Post: 30th June 2009, 16:22
  4. Professional Classes & Objects Structure
    By webstylemedia in forum Newbie
    Replies: 4
    Last Post: 4th August 2008, 10:50
  5. using class objects globally??????
    By pratik in forum Qt Programming
    Replies: 2
    Last Post: 9th July 2007, 13:51

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.