Qt Tutorials For Beginners – QFontDialog Example




QT Font Dialog Demo

In this lesson we will learn how to use QFontDialog in qt.

The QFontDialog class provides a dialog widget for selecting a font

File->New File or Project…

Applications->Qt Gui Application->Choose…

We keep the class as MainWindow as given by default.

Now write the code shown below in main.cpp

Output GUI

QFontDialog Demo Output
QFontDialog Demo Output

 

Output on console

 


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com