QwtPlotCurve : Windows shows curve, Linux curve is missing
I have a main window and in that main window is a qwidget which I promoted to my class based on qwtplot. In the constructor of that class I have defined two arrays which were then added to my plotcurve. When running in Fedora Core 12 the plot comes up fine but missing the plot curve. When I run the same program in Windows 7 all is well with a plot containing the curve. Qt version is 4.6.2 on both platforms with qwt5.1.2 which I subversioned over and built on both machines. My constructor which does all of the work is below... Thanks very much for any insight into what I might be lacking here.
Code:
#include "myplot.h"
#include <qwt_symbol.h>
{
int i ;
setTitle ("junk") ;
curve1->attach(this);
// alloc memory for data arrays
xdata = new double [100] ;
ydata = new double [100] ;
// load arrays for display
for (i = 0; i < 100; i++)
{
xdata[i] = i ;
ydata[i] = i ;
}
curve1->setData(xdata, ydata, 100);
curve1
->setPen
(QPen(Qt
::red,
3));
replot() ;
}
Re: QwtPlotCurve : Windows shows curve, Linux curve is missing
Anybody have any thoughts on this? I would still like to use Qwt as I do in my Windows projects but I am still unable to get a curve in my linux based qwt programs
thanks
Re: QwtPlotCurve : Windows shows curve, Linux curve is missing
The code snippet is ok - obviously this is not the code you have compiled or your problem is somewhere else.
Uwe
1 Attachment(s)
Re: QwtPlotCurve : Windows shows curve, Linux curve is missing
I am leaning that the problem is somewhere else, if you have the time, I have tarred up the cpp, header, .pro and makefile into the attachment to this message. Thanks
Re: QwtPlotCurve : Windows shows curve, Linux curve is missing
Attach a compilable tarball if you want someone to look at it.
Uwe