How can I plot a scatterstyle plot without mentioning it in the legend?
pretty sure you can just call QCustomplot->legend->setVisible(false).
If you set
then any created graphs (which are a plottable subclass) will not automatically also create an according legend item. See QCPLegend documentation for details.
The suggestion by Ian is applicable if you wish to hide the entire legend.