In this article we will see how we can get the title changed signal from the QCalendarWidget. Title changed signal is emitted when the calendar’s title i.e caption has changed. Setting title also emit the same signal.
In order to do this we will use
windowTitleChangedmethod with the QCalendarWidget object.
Syntax : calendar.windowTitleChanged.connect(lambda: print(“Title Changed”))
Argument : It takes no argument
Action Performed : It will print the message whenever signal get emitted
Below is the implementation
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.