By default Qt does not copy fonts along with your application when you deploy them under Linux. I recently faced this issue and none of the texts or labels on my Qt windows showed anything on them. All labels and text were blank and the forms looked completely empty.
Whether you are building an application or a game using Qt for desktop or mobile, you probably like to see the same fonts on the target computers or phones that you set during development. Well sometimes the fonts that you have used just don’t exist in target platforms. Follow these simple steps to embed a font in your application and guarantee that it will exactly look the same when your users run them.
Strange as it is, sometimes you need to go through some not-at-all-obvious procedures to solve simple problems such as this. QLabels allow writing and displaying HTML codes so one way of setting a QLabel’s color would be by setting the color as it is done in HTML but in Qt there is another way.