PyQt5 QDoubleSpinBox - Getting Step Type Property Last Updated : 14 Jul, 2020 Comments Improve Suggest changes Like Article Like Report In this article we will see how we can get the step type property of the QDoubleSpinBox. This property holds the step type. The step type can be single step or adaptive decimal step. By default when we change the value it get change by whole number not by the decimal value although we can change this with the help of step type property, it can be set with the help of setStepType method. In order to do this we will use stepType method with the QDateTimeEdit object. Syntax : dd_spin.stepType() Argument : It takes no argument Return : It returns step type object but when printed it shows the associated value with it Below is the implementation Python3 1== # importing libraries from PyQt5.QtWidgets import * from PyQt5 import QtCore, QtGui from PyQt5.QtGui import * from PyQt5.QtCore import * import sys class Window(QMainWindow): def __init__(self): super().__init__() # setting title self.setWindowTitle("Python ") # setting geometry self.setGeometry(100, 100, 500, 400) # calling method self.UiComponents() # showing all the widgets self.show() # method for components def UiComponents(self): # creating double spin box d_spin = QDoubleSpinBox(self) # setting geometry to the double spin box d_spin.setGeometry(100, 100, 150, 40) # step type step_type = QAbstractSpinBox.AdaptiveDecimalStepType # adaptive step type d_spin.setStepType(step_type) # creating a label label = QLabel("GeeksforGeeks", self) # setting geometry to the label label.setGeometry(100, 200, 300, 80) # making label multi line label.setWordWrap(True) # getting step type value = d_spin.stepType() # setting text to the label label.setText("Step Type : " + str(value)) # create pyqt5 app App = QApplication(sys.argv) # create the instance of our Window window = Window() # start the app sys.exit(App.exec()) Output : Comment More infoAdvertise with us Next Article PyQt5 QDoubleSpinBox â Getting Whole Text R rakshitarora Follow Improve Article Tags : Python Python-PyQt Python-gui Python PyQt-QDoubleSpinBox Practice Tags : python Similar Reads PyQt5 QDoubleSpinBox - Setting Step Type Property In this article we will see how we can set the step type property of the QDoubleSpinBox. This property holds the step type. The step type can be single step or adaptive decimal step. By default when we change the value it get change by whole number not by the decimal value although we can change thi 2 min read PyQt5 QSpinBox - Getting property value In this article we will see how we can get the property value of the spin box, properties are the information added by the developer to tell about the properties of the spin box, for example, if spin box has ability to loop the values, the developer will add this property so that other developer can 2 min read PyQt5 QDoubleSpinBox â Getting Prefix In this article we will see how we can get prefix of the QDoubleSpinBox. A prefix is an affix which is placed before the stem of a word. Adding it to the beginning of one word changes it into another word. For example, when the prefix un- is added to the word happy, it creates the word unhappy. By d 2 min read PyQt5 QDoubleSpinBox â Getting Whole Text In this article we will see how we can get the whole text of the QDoubleSpinBox. WE can get the current value of the double spin box with the help of the value method but it get only the value not the prefix and suffix part. Whole text means text in the double spin box ie prefix, value and suffix al 2 min read PyQt5 QDoubleSpinBox â Getting Stylesheet of it In this article we will see how we can get the stylesheet of the QDoubleSpinBox. Stylesheet is used to set color, background and various styling things of the double spin box. With style sheet we can add border to it and make our own customized double spin box. It can be set to the double spin box w 2 min read PyQt5 QDoubleSpinBox â Getting Suffix In this article we will see how we can get the suffix of the QDoubleSpinBox. In linguistics, a suffix is an affix which is placed after the stem of a word. Common examples are case endings, which indicate the grammatical case of nouns or adjectives, and verb endings, which form the conjugation of ve 2 min read Like