Hi,
thanks a lot for your answers.
I did not expect the GridItem to draw the chessboard but just a grid. I thought the chessboard was some default 'no color set' background. I'm new to this.. thanks again.
Added after 5 minutes:

Originally Posted by
Cah
A quick update...
The suggestion to comment out the grid code forces you to live without the grid. I assume that that was ok. If it's not Then do the following:-
}
I found this to work well for me:
grid->setItemAttribute(grid->Legend, false);
grid->setItemAttribute(grid->AutoScale, true);
grid
->setPen
(QColor(Qt
::gray),
0.0, Qt
::PenStyle::DotLine);
QwtPlotGrid *grid = new QwtPlotGrid();
grid->setItemAttribute(grid->Legend, false);
grid->setItemAttribute(grid->AutoScale, true);
grid->setPen(QColor(Qt::gray), 0.0, Qt::PenStyle::DotLine);
To copy to clipboard, switch view to plain text mode
Bookmarks