Qt Designer如何改变背景 [英] Qt Designer how to change background

查看:24
本文介绍了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:

  1. 右键单击要更改的项目并选择:更改样式表

然后将按钮按到颜色一侧并选择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如何改变背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆