This article illustrates the method of how to change the font.Before this article Read the article for QFont at given link.This article describes The use of Two class QFontComboBox and QFont Together.QFont holds the currently selected font.
Hear style sheet used for selecting background color and QVBoxLayout used for the vertical layout of Font.as shown in screen shot you can select any type of font you want to select.like You can also select the Times New Roman using this class.
This article may be useful for intermediate.
--nayan trivedi 09:25, 17 September 2009 (UTC)