Results 1 to 3 of 3

Thread: How to create an array of objects??

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    62
    Thanked 260 Times in 246 Posts

    Default Re: How to create an array of objects??

    Alternate way is that you create the array/QVector/QList of QLabel (and of course initialize the QLabels) in code (member in the same class as ui or ui*) and you can then add*** them to the rest of the form created with designer.

    ***you won't see them in designer, the add is done also in code, just add them to the layout you need or create a layout for them and parent the layout with the appropriate Widget from the ui.

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

    dominate (22nd January 2011)

Similar Threads

  1. Multi-dimensional objects array
    By matulik in forum Newbie
    Replies: 3
    Last Post: 23rd October 2011, 02:20
  2. QtScript: Passing an array of objects to C++
    By Plow in forum Qt Programming
    Replies: 0
    Last Post: 16th April 2010, 12:53
  3. Problems passing an array of pointers to objects to a function
    By Valheru in forum General Programming
    Replies: 16
    Last Post: 30th June 2008, 00:11
  4. Replies: 0
    Last Post: 25th June 2008, 18:36
  5. Replies: 2
    Last Post: 16th April 2008, 10:31

Tags for this Thread

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.