問題描述
這是一個轉(zhuǎn)發(fā).
我是 QtDesigner 的新手,想對一些按鈕的丑陋做點什么.
I am kind of new in QtDesigner and wanted to do something about the uglyness of just some buttons.
我昨天所做的只是在互聯(lián)網(wǎng)上查看如何在 Qt Designer 中更改屏幕的背景顏色.如何更改按鈕的顏色以及如何使其在側(cè)面變成另一種顏色.你猜怎么著.
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:
右鍵單擊要更改的項目并選擇:更改樣式表
然后將按鈕按到顏色一側(cè)并選擇background-color
,然后選擇顏色并按OK按鈕.
Then press the button to the color side and select background-color
, Then select the color and press the OK buttons.
輸出:
加+:
這篇關(guān)于Qt Designer如何改變背景的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!