Results 1 to 2 of 2

Thread: Problem regarding QWTPLOT

  1. #1
    Join Date
    Aug 2008
    Posts
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Problem regarding QWTPLOT

    Hi I am using QT4.4.0 and qwt-5.0.2.In this I am using QwtPlotCurve class for plotting. For plotting I used setData() function its working properly ,but if I use setRawData() then the execution get breaks with in a couple of minutes .I was not able get why it happening .
    So please help me to solve this problem.

    With regards,
    Sudheer.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem regarding QWTPLOT

    setData() copies the arrys, setRawData() stores the pointer to your array only. Of course then you can't delete the arrays without clearing the curve object before.

    If possible I recommend to use a Qt container instead of the double arrays. Then you don't need to take care about pointless copies or bad references.

    Uwe

Similar Threads

  1. deployment problem: msvc++ 2008 Express, Qt 4.4.3
    By vonCZ in forum Qt Programming
    Replies: 7
    Last Post: 10th November 2008, 14:38
  2. Problem with QwtPlot
    By sudheer168 in forum Qwt
    Replies: 1
    Last Post: 11th September 2008, 09:04
  3. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  4. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.