We have both Markers (QwtPlotMarkers) and Curves (QwtPlotCurves) shown in a QwtPlot's legend. See this screenshot:

MarkersAndCurvesInLegend.png

We would like all Markers to come after all Curves in the legend.

With Qwt 5.2.3, we used to be able to achieve that (Markers coming after Curves) by first turning off, and then turning on again, legend visibility for Markers, like this (mixed pseudo-code):

Qt Code:
  1. For all Markers:
  2. marker->setItemAttribute (QwtPlotItem::Legend, false);
  3.  
  4. For all Markers:
  5. marker->setItemAttribute (QwtPlotItem::Legend, true);
To copy to clipboard, switch view to plain text mode 
That doesn't have any apparent effect in Qwt 6.1.2. (I tried also doing this instead for the Curves, in case this algorithm was putting the effected QwtPlotItems FIRST instead of LAST in the legend item order. That also had no effect).

In Qwt 6.1, is there a way to control the order of legend items?
Thank you in advance.