当前位置:网站首页>QT creator shape
QT creator shape
2022-07-06 11:04:00 【it_ xiangqiang】
Qt Creator shape
- shape
- Rectangle
shape
You can use Rectangle Type in the “ form editor ” Draw basic shapes in .
Most visual types in the library are based on project types . Even if it has no visual appearance ( for example , Similar to the mouse area ), It also defines all attributes common to all visual types , Such as the location , Size and visibility .
Besides , Each type has a set of attributes that specify its visual appearance and behavior . You can modify the attribute values to set the fill and border colors , Stroke width and other characteristics of shape .
The following sections describe the available shapes and their properties in more detail . You can go to “ attribute ” Modify the value of the attribute in the view .
Rectangle
Basic rectangle QML Type is used to draw a shape with four edges and corners and a solid border .
It can be used in “ Color ” Field to fill the rectangle with a solid color or a linear gradient . You can also use the color selector to select a color , And use the gradient selector from the predefined WebGradients Centralized selection gradient .
By setting “ Border color ” and “ Frame ” Value of field , You can add an optional solid border to a rectangle with its own color and thickness . To create a border without a fill color , Please select the button that sets the color to transparent .
By setting “ radius ” Value of field , You can create shapes with rounded corners . Use rectangular width,height and radius Correct combination of attribute values , You can create ellipses and circles . for example , To draw a complete circle , Please draw a rectangle first , Make all four sides equal , Then set its radius to half the side length .
When drawing curved edges , Consider enabling “ attribute ” View's “ senior ” Tab “ Anti-Aliasing ” Check box , To improve the appearance of the shape .
边栏推荐
- 图片上色项目 —— Deoldify
- Idea import / export settings file
- [recommended by bloggers] C WinForm regularly sends email (with source code)
- Opencv uses freetype to display Chinese
- [recommended by bloggers] C # generate a good-looking QR code (with source code)
- MySQL的一些随笔记录
- 安全测试涉及的测试对象
- 虚拟机Ping通主机,主机Ping不通虚拟机
- Mysql25 index creation and design principles
- 1. Mx6u learning notes (VII): bare metal development (4) -- master frequency and clock configuration
猜你喜欢
Mysql24 index data structure
csdn-Markdown编辑器
MySQL master-slave replication, read-write separation
CSDN Q & a tag skill tree (V) -- cloud native skill tree
Swagger, Yapi interface management service_ SE
IDEA 导入导出 settings 设置文件
MySQL21-用户与权限管理
【博主推荐】SSM框架的后台管理系统(附源码)
MySQL20-MySQL的数据目录
windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止
随机推荐
frp内网穿透那些事
Some problems in the development of unity3d upgraded 2020 VR
Asp access Shaoxing tourism graduation design website
Valentine's Day is coming, are you still worried about eating dog food? Teach you to make a confession wall hand in hand. Express your love to the person you want
CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
February 13, 2022-2-climbing stairs
一键提取pdf中的表格
Postman environment variable settings
[C language foundation] 04 judgment and circulation
NPM an error NPM err code enoent NPM err syscall open
【博主推荐】SSM框架的后台管理系统(附源码)
MySQL21-用戶與權限管理
Postman Interface Association
API learning of OpenGL (2004) gl_ TEXTURE_ MIN_ FILTER GL_ TEXTURE_ MAG_ FILTER
安装numpy问题总结
CSDN markdown editor
[recommended by bloggers] asp Net WebService background data API JSON (with source code)
Have you mastered the correct posture of golden three silver four job hopping?
Copy constructor template and copy assignment operator template
1. Mx6u learning notes (VII): bare metal development (4) -- master frequency and clock configuration