Question: A Show Date button will display the calendar date selected in the Date Edit widget. Which code option can be used to show the selected

A Show Date button will display the calendar date selected in the Date Edit widget. Which code option can be used to show the selected date from the Calendar widget in the Date Edit widget?
a.
self.ui.dateEdit.setDisplayFormat()
self.ui.dateEdit.setDate(self.ui.calendar.selectedDate())
b.
self.ui.dateEdit.setDisplayFormat('MMM d yyyy') self.ui.dateEdit.setDate(self.ui.calendarWidget.selectedDate())
c.
self.ui.dateEdit.setDisplayFormat()
self.ui.dateEdit.setDate(calendarWidget.selectedDate)
d.
self.ui.dateEdit.setDisplayFormat('MMM d yyyy')
self.ui.dateEdit.setDate(self.ui.calendarWidget.currentDate())

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!