问题描述
这是一个转发.
我是 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.
输出:
加 :