1
내가 샘플 코드 쓰기 ::: 페인트()
class Element : public QQuickPaintedItem
{
void paint(QPainter *painter)
{
painter->setBrush(Qt::blue);
painter->drawRect(contentsBoundingRect());
}
}
과 QML :
Element {
x : 19
y : 37
width : 371
height : 201
}
왼쪽 가장자리와 위쪽 가장자리가 잘됩니다하지만 오른쪽 가장자리와 하단 가장자리가 사라집니다!
실수를 저 지르지 않았습니까?
PS : 나는 WIN XP