Qt Designer how to change background(Qt Designer如何改变背景)
问题描述
这是一个转发.
我是 QtDesigner 的新手,想对一些按钮的丑陋做点什么.
I am kind of new in QtDesigner and wanted to do something about the uglyness of just some buttons.
我昨天所做的只是在互联网上查看如何在 Qt Designer 中更改屏幕的背景颜色.如何更改按钮的颜色以及如何使其在侧面变成另一种颜色.你猜怎么着.
All i have done yesterday was looking on the internet on how to change the background color of a screen in Qt Designer. How to change the color of a button and how to make it flow into another color on the sides. Guess what.
我什么也没找到.
我希望你们中的一些顽固的编码人员知道我需要什么..
I hope that some of you die-hard coders know what i need..
编辑 1:我的意思是一种颜色流入另一种颜色:
EDIT 1: What i mean with a color flowing into another:
这里粉红色变成紫色,你明白我的意思吗?
Here pink flows into purple, do you get what I mean?
推荐答案
要更改颜色,您可以使用 stylesheets,在 Qt Designer 中您必须遵循以下步骤:
To make the changes of colors you can use stylesheets, in Qt Designer you must follow the following steps:
- 右键单击要更改的项目并选择:更改样式表 
然后将按钮按到颜色一侧并选择background-color,然后选择颜色并按OK按钮.
Then press the button to the color side and select background-color, Then select the color and press the OK buttons.
输出:
加+:
这篇关于Qt Designer如何改变背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Qt Designer如何改变背景
 
				
         
 
            
        基础教程推荐
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 求两个直方图的卷积 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- 包装空间模型 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
 
    	 
    	 
    	 
    	 
    	 
    	 
    	 
    	 
				 
				 
				 
				