Results 1 to 3 of 3

Thread: Need basic help

  1. #1
    Join Date
    Aug 2007
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Need basic help

    Hi all.

    I am trying to find the best way to show my data using QWT. I have a QMap wich maps a QDate to a QVector containing data (double).

    I want to show the date on the X axis and the data on the Y axis.

    First question: Can I put dates on the x-axis? i.e: may-25-1980, may-26-1980 (QString format) or can I only have double values on the x-axis?

    Second question: Is there a way such that qwt does not copy the data, when plotting to a curve? I already have the data in my own containers. If I can, I dont want to copy my data so I have one copy and qwt has one copy... Is there a way such as there is only one data container, i.e qwt does not copy the data, but uses pointers to my containers?

    /Ossi

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

    Default Re: Need basic help

    First question: Can I put dates on the x-axis? i.e: may-25-1980, may-26-1980 (QString format) or can I only have double values on the x-axis?
    Overload QwtScaleDraw::label().

    Second question: Is there a way such that qwt does not copy the data, when plotting to a curve? I already have the data in my own containers
    The curve gets its values using an abstract interface called QwtData. You are free to implement whatever you want behind this interface.

    Uwe

  3. #3
    Join Date
    Aug 2007
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Need basic help

    Thanks Uwe, I got it to work !

Similar Threads

  1. a basic questions!!
    By unix7777 in forum Newbie
    Replies: 1
    Last Post: 28th March 2009, 19:10
  2. Need immediate help on basic cpp
    By Sandip in forum General Programming
    Replies: 10
    Last Post: 21st September 2008, 10:33
  3. Where can I get basic WebKit software?
    By crazymoonboy in forum General Discussion
    Replies: 1
    Last Post: 4th September 2008, 14:15
  4. very simple and basic FAM/Gamin wrapper for qt
    By momesana in forum Qt-based Software
    Replies: 0
    Last Post: 8th April 2008, 12:46
  5. Need Basic html Browser
    By awalesminfo in forum Newbie
    Replies: 6
    Last Post: 21st March 2006, 17:14

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.