gridpattern2d QML Value Type
QCanvasGridPattern 에 대한 gridpattern2d 유형 매칭을 제공합니다. 더 보기...
| Import Statement: | import QtCanvas2D |
| Since: | Qt 6.12 |
| Status: | Technology preview |
이 유형은 기술 미리보기 단계에 있으며 변경될 수 있습니다.
메서드
- color backgroundColor()
- size cellSize()
- real feather()
- color lineColor()
- real lineWidth()
- real rotation()
- void setBackgroundColor(color backgroundColor)
- void setCellSize(real width, real height)
- void setCellSize(size cellSize)
- void setFeather(real feather)
- void setLineColor(color lineColor)
- void setLineWidth(real width)
- void setRotation(real rotation)
- void setStartPosition(real x, real y)
- void setStartPosition(point start)
- point startPosition()
상세 설명
이 값 유형은 ` QtCanvas2D ` 임포트를 통해 제공됩니다.
QCanvasGridPattern도 참조하십시오 .
메서드 문서
color backgroundColor()
패턴 그리드의 배경색을 반환합니다.
setBackgroundColor()도 참조하십시오 .
size cellSize()
격자 패턴에서 단일 셀의 크기를 반환합니다.
setCellSize()도 참조하십시오 .
real feather()
패턴 ‘feather’를 픽셀 단위로 반환합니다.
setFeather()도 참조하십시오 .
color lineColor()
패턴 격자선의 색상을 반환합니다.
setLineColor()도 참조하십시오 .
real lineWidth()
격자 패턴에서 획의 너비를 반환합니다.
setLineWidth()도 참조하십시오 .
real rotation()
패턴의 회전 각도를 라디안 단위로 반환합니다.
setRotation()도 참조하십시오 .
void setBackgroundColor(color backgroundColor)
패턴 격자 배경색을 backgroundColor 로 설정합니다. 기본값은 검은색입니다.
backgroundColor()도 참조하십시오 .
void setCellSize(real width, real height)
그리드 패턴에서 단일 셀의 크기를 width, height 로 설정합니다. width가 0 일 경우, 가로 막대가 그려지지 않습니다. height가 0 일 경우, 세로 막대가 그려지지 않습니다. 기본값은 (10, 10) 입니다.
cellSize()도 참조하십시오 .
void setCellSize(size cellSize)
그리드 패턴에서 단일 셀의 크기를 ` cellSize`로 설정합니다. `width`가 ` 0`일 경우, 가로 막대가 그려지지 않습니다. `height`가 ` 0`일 경우, 세로 막대가 그려지지 않습니다. 기본값은 ` (10, 10)`입니다.
이 함수는 오버로드된 함수입니다.
void setFeather(real feather)
패턴 페더를 픽셀 단위로 feather 로 설정합니다. 기본값은 1.0 이며, 이는 1픽셀 안티앨리어싱을 의미합니다.
feather()도 참조하십시오 .
void setLineColor(color lineColor)
패턴 격자선의 색상을 lineColor 로 설정합니다. 기본값은 흰색입니다.
lineColor()도 참조하십시오 .
void setLineWidth(real width)
격자 패턴의 획 너비를 width 로 설정합니다. 기본값은 1.0 입니다.
lineWidth()도 참조하십시오 .
void setRotation(real rotation)
패턴 회전 각도를 라디안 단위로 rotation 로 설정합니다. 회전은 그리드 startPosition()을 중심으로 이루어집니다. 기본값은 0.0 이며, 이는 그리드가 회전되지 않음을 의미합니다.
rotation()도 참조하십시오 .
void setStartPosition(real x, real y)
격자 패턴의 시작점을 (x, y)로 설정합니다. 시작 위치는 패턴 내 격자의 왼쪽 상단 모서리를 의미합니다. 패턴은 이 지점을 기준으로 모든 위치로 확장됩니다. 기본값은 (0.0, 0.0) 입니다.
startPosition()도 참조하십시오 .
void setStartPosition(point start)
그리드 패턴의 시작점을 start 로 설정합니다. 시작 위치는 패턴에서 그리드의 왼쪽 상단 모서리를 의미합니다. 패턴은 이 지점을 기준으로 모든 위치로 확장됩니다. 기본값은 (0.0, 0.0) 입니다.
이 함수는 오버로드된 함수입니다.
point startPosition()
격자 패턴의 시작점을 반환합니다.
setStartPosition()도 참조하십시오 .
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.