Month of QDateEdit doesn't change



  • Dear all,

    I have QDateEdit widget, When i select year or select day , i can up and down, but when i select month, i can't up or down, my format is yyyy/m/d



  • Hi,
    What is your code?? Did you set limitations?
    The default should work.
    Greetz



  • my code is :

       self.dateEdit = QtGui.QDateEdit(MaterialsInsert)        
        self.dateEdit.setGeometry(QtCore.QRect(260, 120, 151, 33))
        self.dateEdit.setToolTip(_fromUtf8(""))
        self.dateEdit.setStatusTip(_fromUtf8(""))
        self.dateEdit.setWhatsThis(_fromUtf8(""))
        self.dateEdit.setAccessibleName(_fromUtf8(""))
        self.dateEdit.setAccelerated(True)
        self.dateEdit.setMinimumDate(QtCore.QDate(1360,1,1))
        self.dateEdit.setMaximumDate(QtCore.QDate(1600,1,1))
        self.dateEdit.setDate(QtCore.QDate(1370, 1, 1))
        self.dateEdit.setDisplayFormat(_fromUtf8("d/M/yyyy"))
        self.dateEdit.setObjectName(_fromUtf8("dateEdit"))

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.