Results 1 to 6 of 6

Thread: Basic question about allocation

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2009
    Location
    Laval, France
    Posts
    124
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Basic question about allocation

    Suppose I have a function in the code of which I have
    Qt Code:
    1. QVector<int> myvector;
    To copy to clipboard, switch view to plain text mode 
    further down I append elements to myvector
    like this
    Qt Code:
    1. myvector.append(3)
    To copy to clipboard, switch view to plain text mode 
    Where does the allocation take place? On the stack? On the heap?
    What do I need to know about freeing the memory?
    Last edited by feraudyh; 23rd June 2010 at 18:15. Reason: layout

Similar Threads

  1. A few basic question
    By salmanmanekia in forum Newbie
    Replies: 12
    Last Post: 17th June 2010, 07:46
  2. Basic question
    By giacomelli.fabio in forum Newbie
    Replies: 4
    Last Post: 18th December 2009, 00:12
  3. Basic QtScript question
    By jimboqt in forum Newbie
    Replies: 0
    Last Post: 23rd September 2008, 14:09
  4. Basic question on new and delete
    By jcr in forum General Programming
    Replies: 25
    Last Post: 14th February 2006, 15:09
  5. Using QSA: A very basic question
    By yogeshm02 in forum Newbie
    Replies: 3
    Last Post: 26th January 2006, 07:34

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.