Hello.
I've one example in which there is one checkbox that shows the markers if you check it and hide them if you uncheck it. The function i have is the next:
void CWGraficaSimple::on_chkMostrarEventos_stateChanged(int state)
{
QVectorIterator<QwtPlotMarker*> itMarcas(vMarcas);
while(itMarcas.hasNext())
itMarcas.next()->setVisible(state);
qwtPlot->replot();
}
void CWGraficaSimple::on_chkMostrarEventos_stateChanged(int state)
{
QVectorIterator<QwtPlotMarker*> itMarcas(vMarcas);
while(itMarcas.hasNext())
itMarcas.next()->setVisible(state);
qwtPlot->replot();
}
To copy to clipboard, switch view to plain text mode
Maybe if you first set the visible estate to false and then you delete it, it will work.
I hope that helps.
Regards
Bookmarks