myRect=( 100, -100, width-200, -(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
myRect=( 100.001, -100, width-200, -(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
myRect=( 99, -100, width-200, -(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
myRect=( 100, -100-(height-200), width-200, +(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
myRect=( 100.001, -100-(height-200), width-200, +(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
myRect=( 99, -100-(height-200), width-200, +(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
QRectF myRect,clipRect;
myRect=( 100, -100, width-200, -(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
myRect=( 100.001, -100, width-200, -(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
myRect=( 99, -100, width-200, -(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
myRect=( 100, -100-(height-200), width-200, +(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
myRect=( 100.001, -100-(height-200), width-200, +(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
myRect=( 99, -100-(height-200), width-200, +(height-200) );
cout << "myRect: left: " << myRect.left() << " right: " << myRect.x() + myRect.width() << " top: " << myRect.top() << " bottom: " << myRect.y() + myRect.height() << endl;
myPainter.setClipRect(myRect, Qt::ReplaceClip);
clipRect = myPainter.clipRegion().boundingRect();
cout << "clipRect: left: " << clipRect.left() << " right: " << clipRect.x() + clipRect.width() << " top: " << clipRect.top() << " bottom: " << clipRect.y() + clipRect.height() << endl;
To copy to clipboard, switch view to plain text mode
Bookmarks