Now it’s working, I was not creating the qMRMLPlotView object the right way. using the plotWidget object to create it solved my problem.
Thank you for your help!
here is the code that worked for me
plotWidget = layoutManager.plotWidget(0)
plotViewNode = plotWidget.mrmlPlotViewNode()
plotViewNode.SetPlotChartNodeID(projectionPlotChartNode.GetID())
plotViewNode.SetPlotChartNodeID(variancePlotChartNode.GetID())
plotView = plotWidget.plotView()
plotView.connect("dataSelected(vtkStringArray*, vtkCollection*)", self.onDataSelected)