[Interest] QTableWidget::setCellWidget() overrides widget's palette?

Murphy, Sean smurphy at walbro.com
Fri Apr 20 14:07:18 CEST 2018


> Probably not your problem, but have you tried setAutoFillBackground(true) on your plot? I have that in one of my Qwt apps.

I think I did. I played around a lot with the following functions, but it's possible I didn't hit the right combination in the right location 
  QTableWidget::setAutoFillBackground(true);
  QwtPlot::setAutoFillBackground(true);
  QwtPlot::setCanvasBackground(QBrush(QColor(50,50,50)));
  QwtPlot::canvas()->setAutoFilleBackground(true);

But the issue only comes up with the plots that are embedded into the table. The standalone plot has the color palette I want, and 
the palette is being set in the plot class' constructor, so it should be the same palette for all 3 plots.

Sean





This message has been scanned for malware by Forcepoint. www.forcepoint.com


More information about the Interest mailing list