plotpage is declared in the dialog header file (generated by Creator) as
QtPlot *plotpage;
QtPlot *plotpage;
To copy to clipboard, switch view to plain text mode
In your example above, plot2 would also be a QwtPlot object, I need it as a myQwtPlot object to enable my own class functions to override the QwtPlot functions.
myQwtPlot is defined as follows;
{
Q_OBJECT
public:
explicit myQwtPlot
(QWidget *parent
= 0);
signals:
public slots:
}
lass myQwtPlot : public QwtPlot
{
Q_OBJECT
public:
explicit myQwtPlot(QWidget *parent = 0);
signals:
public slots:
}
To copy to clipboard, switch view to plain text mode
Since there is only a single item to cast at the start of the program, I didn't think I would need a dynamic_cast, and avoid the need for rtti
Carlton.
Bookmarks