Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 595
That One Avatar asked Apr 07 '17 16:04

That One


1 Answers

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

like image 71
eyllanesc Avatar answered Nov 09 '22 12:11

eyllanesc