QCustomPlot Discussion and Comments

Border ColorReturn to overview

Is there anyway to set a border for QCustomPlot or would this need to be done with some other Qt code?

I've been searching all night, but haven't come up with much.


QCustomPlot is derived from QWidget so easiest option would be to set stylesheet:

customPlot->setStyleSheet("border: 1px solid red");

I tried that, but nothing happens.

I am using a QGraphicsScene and I make an instance of QGraphicsProxyWidget and then set my customPlot widget as its widget.

Then I add the proxy widget to the scene.