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?

  1. font.setStyle()
  2. font.setStyle(style)
  3. font.style()
  4. 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) 

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.