
Originally Posted by
camel
...
The result: no more corruption of the grid...only weird color changes that I am trying to track down ;-)
for the floor, and ceil to work ;-)
As you said no more corruption but yeah even I am cracking my head a lot on how to remove those weird color changes.
But I tell you I found one magic while experimenting. Try , its fun.
change the bounding rect of Resistor to
QRectF Resistor
::boundingRect() const {
qreal pw = 0.5;
return QRectF(-47,
-9,
47*2,
18).
adjusted(-pw,
-pw,pw,pw
);
}
QRectF Resistor::boundingRect() const
{
qreal pw = 0.5;
return QRectF(-47,-9,47*2,18).adjusted(-pw,-pw,pw,pw);
}
To copy to clipboard, switch view to plain text mode
Check for performance now!!
Bookmarks