I would like to be able to set a color border around the QCustomPlot in order to help distinguish it from the rest of my GUI. I have tried setting the style sheet in this way: ui->customPlot->setStyleSheet("border: 1px solid red"); but this did not change anything. Any help in doing this would be appreciated.