In this article we will see how we can get the font of QColorDialog. Font is the style i.e properties of the text present in the color dialog. We use
setFont method to set the font to the dialog.
Note : Increasing size of font will increase the size of the dialog box although dialog size is fixed
In order to do this we use
font method with the QColorDialog object
Syntax : dialog.font()
Argument : It takes no argument
Return : It returns QFont object
Below is the implementation
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course