PyQt5 QCalendarWidget – Setting Window Flags
In this article we will see how we can set the window flags of the QCalendarWidget. Window flags are a combination of a type (e.g. Qt::Dialog) and zero or more hints to the window system (e.g. Qt::FramelessWindowHint).If the calendar had type Qt::Widget or Qt::SubWindow and becomes a window (Qt::Window, Qt::Dialog, etc.), it is put at position (0, 0) on the desktop. If the widget is a window and becomes a Qt::Widget or Qt::SubWindow, it is put at position (0, 0) relative to its parent widget.
In order to do this we will use
setWindowFlagsmethod with the QCalendarWidget object.
Syntax : calendar.setWindowFlags(flag)
Argument : It takes window flag object as argument
Return : It return None
Below is the implementation
My Personal Notes arrow_drop_up
Please Login to comment...