In my plugin I want to select some layers programmatically. But with
virtual QList<QgsMapLayer *> QgsLegendInterface::selectedLayers(bool inDrawOrder = false)
I only receive the actually selected layers.
I've tried in QgsLayerTreeView
the method void QgsLayerTreeView::setCurrentLayer(QgsMapLayer * layer)
But I only can select one Layer, and I need to select more layers.
Any idea what could I try?