Hello everyone!

I compiled Qt 4.3.0 when it was released and my application behaves quite weird...(it worked using Qt 4.2.3) I am not sure, but maybe I've found a bug in clipping, but I'd rather ask here first...

so, the code is rather simple:
Qt Code:
  1. int main(int argc, char *argv[]){
  2. QApplication app(argc, argv);
  3. int height = 500;
  4. int width = 600;
  5. QPixmap myPixmap(width, height);
  6. QPainter myPainter(&myPixmap);
  7. myPainter.translate(0,height);
  8. //make the coordinate system look like this:
  9. // -y ^
  10. // |
  11. // |
  12. // |
  13. // |
  14. // ----------->
  15. // 0,0 +x
  16. QRectF myRect( 100.001, -100, width-200, -(height-200) ); //**here lies the problem, I guess
  17. myPainter.setClipRect(myRect, Qt::ReplaceClip);
  18. myPainter.fillRect(0, 0, width, -height, Qt::cyan);
  19. myPainter.setClipRect(myRect, Qt::NoClip);
  20. myPixmap.save("out.png", "PNG");
  21. return 0;
  22. }
To copy to clipboard, switch view to plain text mode 

using this code I get an image with a cyan rectangle in the middle, as expected.
However, if I change that one marked line to:
Qt Code:
  1. QRectF myRect( 100, -100, width-200, -(height-200) );
To copy to clipboard, switch view to plain text mode 
the image is entirely black...

Am I doing something wrong, or do you find it weird, too?

Thanks for answer...