scascio, I have already solved this problem but I'll answer your question anyway.
In the first sample code it is:
QRectF ButtonWidget
::boundingRect() {
}
QRectF ButtonWidget::boundingRect()
{
return QRectF(0, 0, 50, 50);
}
To copy to clipboard, switch view to plain text mode
In the second:
QRectF ButtonWidget
::boundingRect() {
return QRectF(-20,
-20,
50,
50);
}
QRectF ButtonWidget::boundingRect()
{
return QRectF(-20, -20, 50, 50);
}
To copy to clipboard, switch view to plain text mode
Edit: spelling correction
Bookmarks