I want axis labels for a plot I\'m making, and naturally the y-axis label should be oriented vertically. I\'m pretty sure QwtPlot
does this, but I\'m trying to
You can also create a new QGraphicsScene
, add to it QLabel and then rotate it. Like this:
QLabel* label = QLabel("Y axis");
QGraphicsScene scene;
QGraphicsProxyWidget * proxy = scene.addWidget(label);
proxy->rotate(-45);
QGraphicsView view(&scene);
view.show();
Take a look at the similar example (the output image has a wrong ratio, look at the direct URL).