Qt Designer how to change background

46,645

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

Share:
46,645
That One
Author by

That One

High-School student who begs his Maths Teacher daily for some more Python Lessons. Learning More everyday, still pretty new tho. Almost always Polite

Updated on July 07, 2020

Comments

  • That One
    That One almost 4 years

    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?