@Spitfire,
Thank you for the books. I had a look into them and their great.
I have question regarding inheritance of QWT objects.
Are there some compulsury functions that need to be explicitly modified
in order to be able to run them?
The problem I have now is that when I insert my extended class,
I get a heap memory problem. By debuggin I see that the problem
might come from the replot functions.
The code is as follows:
#include <qwt/qwt_plot.h>
#include <qwt/qwt_interval.h>
#include <qwt/qwt_system_clock.h>
class QwtPlotDirectPainter;
class PlotOscilloscope
: public QwtPlot
{
Q_OBJECT
public:
PlotOscilloscope
(QWidget *parent
= NULL);
virtual ~PlotOscilloscope();
virtual void replot();
protected:
}
#include <qwt/qwt_plot.h>
#include <qwt/qwt_interval.h>
#include <qwt/qwt_system_clock.h>
class QwtPlotCurve;
class QwtPlotMarker;
class QwtPlotDirectPainter;
class PlotOscilloscope : public QwtPlot
{
Q_OBJECT
public:
PlotOscilloscope(QWidget *parent = NULL);
virtual ~PlotOscilloscope();
virtual void replot();
protected:
virtual void showEvent(QShowEvent *);
virtual void resizeEvent(QResizeEvent *);
virtual void timerEvent(QTimerEvent *);
}
To copy to clipboard, switch view to plain text mode

Originally Posted by
Spitfire
I'm guessing you've got Q_OBJECT makro in class that doesn't derive from QObject.
As to the book,
here's nce list.
To be clear, qt has nothing to do with msvc, it's just a framework that will work with any ide you use.
Bookmarks