All was good until I wrote
WidgetFrameCommonView
::WidgetFrameCommonView( QWidget *parent
){
setupUi( this );
QwtPlotHistogram *histogram = new QwtPlotHistogram();
//histogram->setStyle(QwtPlotHistogram::Columns);
//histogram->setPen(QPen(Qt::black));
//histogram->setBrush(QBrush(Qt::gray));
//histogram->attach(Plot);
//Plot->replot();
CommonInfoPanel->SetBackGroundColor( Qt::lightGray );
SeparatorsPanelsPanel->SetBackGroundColor( Qt::gray );
gridLayout->setContentsMargins( 0, 0, 0, 0 );
gridLayout->setSpacing( 0 );
}
WidgetFrameCommonView::WidgetFrameCommonView( QWidget *parent )
: QWidget( parent )
{
setupUi( this );
QwtPlotHistogram *histogram = new QwtPlotHistogram();
//histogram->setStyle(QwtPlotHistogram::Columns);
//histogram->setPen(QPen(Qt::black));
//histogram->setBrush(QBrush(Qt::gray));
//histogram->attach(Plot);
//Plot->replot();
CommonInfoPanel->SetBackGroundColor( Qt::lightGray );
SeparatorsPanelsPanel->SetBackGroundColor( Qt::gray );
gridLayout->setContentsMargins( 0, 0, 0, 0 );
gridLayout->setSpacing( 0 );
}
To copy to clipboard, switch view to plain text mode
linking RadosSeparatorQT (g++)
WidgetFrameCommonView.o: In function `WidgetFrameCommonView':
/home/Andrei/Projects/Rados/RadosSeparatorQT/Frames/WidgetFrameCommonView.cpp:9: undefined reference to `QwtPlotHistogram::QwtPlotHistogram(QString const&)'
/home/Andrei/Projects/Rados/RadosSeparatorQT/Frames/WidgetFrameCommonView.cpp:9: undefined reference to `QwtPlotHistogram::QwtPlotHistogram(QString const&)'
collect2: ld returned 1 exit status
gmake: *** [RadosSeparatorQT] Error 1
gmake: Target `first' not remade because of errors.
*** Exited with status: 2 ***
Without
QwtPlotHistogram *histogram = new QwtPlotHistogram();
QwtPlotHistogram *histogram = new QwtPlotHistogram();
To copy to clipboard, switch view to plain text mode
linking is successful. As I understood class QwtPlotHistogram have some bugs?
class QWT_EXPORT QwtPlotHistogram: public QwtPlotSeriesItem<QwtIntervalSample>
{
public:
enum CurveStyle
{
NoCurve,
Outline,
Columns,
Lines,
UserCurve = 100
};
explicit QwtPlotHistogram
(const QwtText &title
);
virtual ~QwtPlotHistogram();
...
};
#endif
class QWT_EXPORT QwtPlotHistogram: public QwtPlotSeriesItem<QwtIntervalSample>
{
public:
enum CurveStyle
{
NoCurve,
Outline,
Columns,
Lines,
UserCurve = 100
};
explicit QwtPlotHistogram(const QString &title = QString::null);
explicit QwtPlotHistogram(const QwtText &title);
virtual ~QwtPlotHistogram();
...
};
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks