Hi there!

I am trying to make some markers of a plot disappear. I am using the itemList() function to get the plotitems:

Qt Code:
  1. foreach (QwtPlotItem* item, itemList())
  2. {
  3. if (item->rtti() == QwtPlotItem::Rtti_PlotMarker)
  4. {
  5. //if (item->lineStyle() == QwtPlotMarker::NoLine) // doesn't work because item is of type QwtPlotItem and not QwtPlotMarker
  6. item->setVisible(false);
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 

I need to leave some line-markers visible and hide the "QwtPlotMarker::NoLine"-ones.
How do i access the QwtPlotMarker out of the "QwtPlotItem* item"??
Is there a way to achieve that?

Thanks in advance...