Results 1 to 10 of 10

Thread: is it a C++ error or Qt/Qwt related?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2006
    Posts
    31
    Thanked 5 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: is it a C++ error or Qt/Qwt related?

    Interestin enough delete[] works also from copied pointers, it means that you don't need

    int samplesSize;

    as member data but a local variable will suffice and freeData() became:

    Qt Code:
    1. void Dialog::freeData()
    2. {
    3. for(int i = 0; i < samplesPtr.size(); i++)
    4. delete[] samplesPtr.at(i);
    5. }
    To copy to clipboard, switch view to plain text mode 

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

    jiveaxe (17th November 2007)

Similar Threads

  1. Related to header file
    By merry in forum Qt Programming
    Replies: 2
    Last Post: 10th May 2007, 13:03
  2. Question related to Q3DataTable
    By mitesh_modi in forum Qt Programming
    Replies: 0
    Last Post: 29th November 2006, 08:49
  3. Replies: 4
    Last Post: 3rd April 2006, 08:22
  4. Qt related questions and thoughts about getting job
    By AlexKiriukha in forum General Discussion
    Replies: 4
    Last Post: 26th January 2006, 12:25

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.