PyQt5 QDial – Setting Orientation Property
In this article we will see how we can set orientation property of QDial. This property holds the orientation of the slider, the orientation must be Vertical (the default) or Horizontal. For vertical orientation associated value is 2 and for horizontal orientation, it is 1.
In order to do this we use
setOrientation method with the QDial object
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
Syntax : dial.setOrientation(orientation)
Argument : It takes Orientation object as argument
Return : It returns None
Below is the implementation