That One
That One

Reputation: 597

Qt Designer how to change background

This is an repost.

I am kind of new in QtDesigner and wanted to do something about the uglyness of just some buttons.

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 found nothing.

I hope that some of you die-hard coders know what i need..

EDIT 1: What i mean with a color flowing into another:

Here pink flows into purple, do you get what I mean?

Upvotes: 17

Views: 76177

Answers (1)

eyllanesc
eyllanesc

Reputation: 244282

To make the changes of colors you can use stylesheets, in Qt Designer you must follow the following steps:

  1. Right click on the item you want to change and select: change stylesheet

    enter image description here

  2. Then press the button to the color side and select background-color, Then select the color and press the OK buttons.

enter image description here

enter image description here

Output:

enter image description here

plus+:

enter image description here

enter image description here

Upvotes: 46

Related Questions