Qwt ploting financial data
Hello Uwe/others!
I'm interested in a Qt/C++ library capable of drawing graphics, specifically with candlesticks.
Doing some research some time ago I found that Qwt didn't provided such functionallity.
The case, though, is that you mentioned in a post at 2009 that to put such functionallities was part of your plans "for the next version".
My question is: was that done?
In case the answer is no, than a totally different question: does somebody knows a Qt/C++ free lib that do such financial plotting nicely?
Thanks,
Momergil
Re: Qwt ploting financial data
Quote:
Originally Posted by
Momergil
The case, though, is that you mentioned in a post at 2009 that to put such functionallities was part of your plans "for the next version". My question is: was that done?
Sure - see QwtPlotTradingCurve. The stockcharts example shows how to use it.
Qwt 6.1 is in a state, where I'm waiting for user feedback about all the new stuff. So use your chance to tell me what I might have forgotten before the final version is out and I have to take care of binary compatibilities.
Uwe
Re: Qwt ploting financial data
Quote:
Originally Posted by
Uwe
Sure - see
QwtPlotTradingCurve. The stockcharts example shows how to use it.
Qwt 6.1 is in a state, where I'm waiting for user feedback about all the new stuff. So use your chance to tell me what I might have forgotten before the final version is out and I have to take care of binary compatibilities.
Uwe
Oh yeah!
Now I found a problem: where is version 6.1 to be downloaded? in the sourceforge page [http://qwt.sourceforge.net/6.1/index.html] only 5.2, 6.0 and "development snapshot from the SVN repository" are mentioned, and when I enter in sourceforge donwload's page [http://sourceforge.net/projects/qwt/] the version to be downloaded is 4.2.0!
Re: Qwt ploting financial data
All information is available on the Qwt project page: http://qwt.sourceforge.net/
Uwe
Re: Qwt ploting financial data
O.K., I managed to find it.
Now I found a problem while building: [http://www.qtcentre.org/threads/5277...ingW?p=236357]
Thanks,
Momergil
Re: Qwt ploting financial data
A problem of rc1, you need rc2.
Uwe
Re: Qwt ploting financial data
yeah, it worked fine now.
My last problem (I hope so!): I included qwt in my pro file:
QT += core gui network sql qwt
CONFIG += qwt
But I'm still incapable of accessing the classes. What is missing? I read in the install file about a QWT_DLL that I should include somewhere, but neither I understood where, nor I was able to find that DLL.
Re: Qwt ploting financial data
Quote:
Originally Posted by
Momergil
CONFIG += qwt
That's enough, when you did a "make install" before.
Quote:
read in the install file about a QWT_DLL that I should include somewhere, ...
QWT_DLL is mentioned in the section about what to do, when not working with qmake. Instead this is what you need to do:
Uwe
Re: Qwt ploting financial data
Quote:
Originally Posted by
Uwe
That's enough, when you did a "make install" before.
QWT_DLL is mentioned in the section about what to do, when not working with qmake. Instead this is what you need to do:
Uwe
yes - a mingw32-make install.
well since I use qmake, I don't need QWT_DLL then.
Now The first part I understood that that is what I did: CONFIGURE += qwt , and qmake understand it to be qwt.prf. (this is what I understood from the link you provided).
Now what about that PATH? In fact, since I began working with Qt I hear about this PATH and dever actually found it :P where exactly is that thing and how to edit it?
Edit: if by PATH you mean the environment variable we can change in Windows by going to System and System Advanced Proprieties and adding ";C:\Qwt-6.1.0-rc2\lib" to the end, OK, I did that step already, but how does that relates to Qt?
Re: Qwt ploting financial data
OK, i think i managed to do some things...
after more carefull search, I understood the PATH variable and edited it so to include ";C:\Qwt-6.0.1\lib" as indicated in this post: http://www.qtcentre.org/threads/4715...ht=qwt+install
I have the CONFIG += qwt in my .pro file as well. Now what more is needed in order to be able to include that files?
Re: Qwt ploting financial data
Ok, I think everything is right now - despite the fact that I'm not sure this was the way I was supposed to do.
In case, I create a no-extension file with includes of the .h from C:\... that I needed to my project and included it in mainwindow.h:
Code:
/*
Copyright (c) 2013 - Martin Bittencourt
This file includes all relevant qwt classes for mShare.
*/
#ifndef QWTMSHARE_H
#define QWTMSHARE_H
#include "C:\Qwt-6.1.0-rc2\include\qwt.h"
#include "C:\Qwt-6.1.0-rc2\include\qwt_plot.h"
#include "C:\Qwt-6.1.0-rc2\include\qwt_plot_curve.h"
#include "C:\Qwt-6.1.0-rc2\include\qwt_plot_grid.h"
#include "C:\Qwt-6.1.0-rc2\include\qwt_plot_tradingcurve.h"
#endif // QWTMSHARE_H
So thanks Uwe for everything!
Last question: where should I give the feedback? I already have some ideas! :)