<div dir="ltr">Hello is possible to add the nabitoolbar to a scene<div><br></div><div>For add the graph i do as follow:</div><div>def test_draw(self):<br> scene = QGraphicsScene()<br> figure = Figure(figsize=(9.18, 6.25), dpi=55)<br> axes = figure.gca()<br> axes.set_title("Test Draw")<br> lista_r_mp = []<br> lista_y_mp = []<br> for a in range(len(lista_r)-1):<br> print(float(lista_r[a]), float(lista_r[a+1]))<br> test_r = np.linspace(float(lista_r[a]), float(lista_r[a+1]))<br> lista_r_mp.append(test_r)<br> for b in range(len(lista_y)-1):<br> test_y = np.linspace(float(lista_y[b]), float(lista_y[b+1]))<br> lista_y_mp.append(test_y)<br> for c in range(len(lista_y_mp)):<br> axes.plot(lista_r_mp[c], lista_y_mp[c])<br> axes.grid(True)<br> canvas = FigureCanvas(figure)<br> proxy_widget = scene.addWidget(canvas)<br> scene.addItem(proxy_widget)<br> self.graphicsView_2.setScene(scene)</div><div><br></div><div>How i can add navitoolbar i have try:</div><div>
scene_one = QGraphicsScene()
</div><div> canvas_1 = FigureCanvas(figure_1)<br> navigation = NavigationToolbar(canvas_1, self)<br> tabella = scene_one.addWidget(navigation)<br> scene_one.addItem(tabella)<br> self.graphicsView_2.setScene(scene)<br> self.graphicsView_3.setScene(scene_one)<br></div><div>but no toolbar is displaied</div><div><br></div></div>