I just reinstalled OSX to the latest and upgraded QT(4.74->4.8.4) and QWT(6.01->6.1). After getting my project to compile I can finally run my code if I comment out a couple of qwt calls that I don't understand. Below is my code. I am getting the following compile errors

/Users/KenS/QT_Projects/ep1/plot.cpp:127: error: 'setMajPen' was not declared in this scope
/Users/KenS/QT_Projects/ep1/plot.cpp:128: error: 'setMinPen' was not declared in this scope

I did not get these errors before the upgrade. Does anyone have an idea of what I am doing wrong or what I could have not configured correctly when I rebuilt my machine?

Ken


Qt Code:
  1. #include "plot.h"
  2. // include "friedberg2007.h"
  3. #include <qwt_plot_zoomer.h>
  4. #include <qwt_plot_panner.h>
  5. #include <qwt_plot_marker.h>
  6. #include <qwt_plot_grid.h>
  7. #include <qwt_plot_curve.h>
  8. #include <qwt_plot_intervalcurve.h>
  9. #include <qwt_legend.h>
  10. #include <qwt_interval_symbol.h>
  11. #include <qwt_symbol.h>
  12. #include <qwt_series_data.h>
  13. #include <qwt_text.h>
  14. #include <qwt_scale_draw.h>
  15. #include <qwt_plot_renderer.h>
  16. #include <qdatetime.h>
  17. #include <qfiledialog.h>
  18. #include <qimagewriter.h>
  19. #include <qprintdialog.h>
  20. #include <qfileinfo.h>
  21.  
  22. ...
  23. ...
  24. ...
  25.  
  26. class Grid: public QwtPlotGrid
  27. {
  28. public:
  29. Grid()
  30. {
  31. enableXMin( true );
  32. setMajPen( QPen( Qt::white, 0, Qt::DotLine ) );
  33. setMinPen( QPen( Qt::gray, 0 , Qt::DotLine ) );
  34. }
  35.  
  36.  
  37. virtual void updateScaleDiv( const QwtScaleDiv &xMap,
  38. const QwtScaleDiv &yMap )
  39. {
  40. QList<double> ticks[QwtScaleDiv::NTickTypes];
  41.  
  42. ticks[QwtScaleDiv::MajorTick] =
  43. xMap.ticks( QwtScaleDiv::MediumTick );
  44. ticks[QwtScaleDiv::MinorTick] =
  45. xMap.ticks( QwtScaleDiv::MinorTick );
  46.  
  47. QwtPlotGrid::updateScaleDiv(
  48. QwtScaleDiv( xMap.lowerBound(), xMap.upperBound(), ticks ),
  49. yMap );
  50. }
  51. };
To copy to clipboard, switch view to plain text mode