We will now see a few examples to get started with using Qt Style Sheets. Style Sheet Usage Customizing the Foreground and Background Colors Let's start by setting yellow as the background color of all QLineEdits in an application. This could be achieved like this: