Home »
Python »
PyQt MCQs
How to set or change the style to the spin box text in PyQt?
23. How to set or change the style to the spin box text in PyQt?
- font.setStyle()
- font.setStyle(style)
- font.style()
- font.style(style)
Answer: B) font.setStyle(style)
Explanation:
The font.setStyle() method can be used to set or change the style to the spin box text in PyQt. Consider the below code statement –
font.setStyle(QFont.StyleOblique)