Fonts are systemic, so you should see what your system offers.
If you are using QtCreator :
try placing the mouse pointer at the end of your component name
Text <here> { ... }
You should see a yellow light, click on it, and you will have an interface that allows you to select a font.
You can also access the ctrl + alt + space interface inside the component. Or right click.
source share