当前位置:网站首页>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 .
边栏推荐
- Global and Chinese market of transfer switches 2022-2028: Research Report on technology, participants, trends, market size and share
- [leectode 2022.2.13] maximum number of "balloons"
- Install mysql5.5 and mysql8.0 under windows at the same time
- neo4j安装教程
- windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止
- Remember the interview algorithm of a company: find the number of times a number appears in an ordered array
- CSDN blog summary (I) -- a simple first edition implementation
- 导入 SQL 时出现 Invalid default value for ‘create_time‘ 报错解决方法
- Asp access Shaoxing tourism graduation design website
- 记一次某公司面试题:合并有序数组
猜你喜欢
随机推荐
API learning of OpenGL (2005) gl_ MAX_ TEXTURE_ UNITS GL_ MAX_ TEXTURE_ IMAGE_ UNITS_ ARB
01项目需求分析 (点餐系统)
[Li Kou 387] the first unique character in the string
Why is MySQL still slow to query when indexing is used?
Mysql22 logical architecture
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
Mysql28 database design specification
Detailed reading of stereo r-cnn paper -- Experiment: detailed explanation and result analysis
Global and Chinese market for intravenous catheter sets and accessories 2022-2028: Research Report on technology, participants, trends, market size and share
Ansible practical series I_ introduction
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
windows无法启动MYSQL服务(位于本地计算机)错误1067进程意外终止
安装numpy问题总结
Global and Chinese markets for aprotic solvents 2022-2028: Research Report on technology, participants, trends, market size and share
记一次某公司面试题:合并有序数组
MySQL master-slave replication, read-write separation
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
JDBC原理
Did you forget to register or load this tag 报错解决方法
安全测试涉及的测试对象

![[C language foundation] 04 judgment and circulation](/img/59/4100971f15a1a9bf3527cbe181d868.jpg)






