The following code paints a thick, red, square dot on Windows, but nothing at all on Linux (Ubuntu).

Qt Code:
  1. QPen myPen(Qt::red);
  2. myPen.setWidth(20);
  3. pnt->setPen(myPen);
  4. pnt->setBrush(Qt::NoBrush); // should not be necessary, but doesn't hurt
  5. pnt->drawPoint(100, 100);
To copy to clipboard, switch view to plain text mode 

On Linux a dot is only drawn when the width is set to 1. Anyhting bigger than 1 results in a blank canvas.

I'm using Qt 4.6. What am I doing wrong here? Any help is appreciated. Or is this a known bug? If only 1 pixel dots are allowed, I would still think it should be the same on all platforms?