PythonQt.QtGui.QCalendarWidget · declarations 002
Back to PythonQt.QtGui.QCalendarWidget
setDateEditEnabled
setDateEditEnabled(enable: bool) -> None
X.setDateEditEnabled(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setDateEditEnabled(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setDateEditEnabled
setDateRange
setDateRange(min: Any, max: Any) -> None
X.setDateRange(min, max)
Supplemental documentation: Qt 5 reference:
[slot] void QCalendarWidget::setDateRange(const QDate \&min, const QDate \&max)
Defines a date range by setting the minimumDate and maximumDate properties.
The date range restricts the user selection, i.e. the user can only select dates within the specified date range. Note that
QCalendarWidget *calendar;
calendar->setDateRange(min, max);
is analogous to
QCalendarWidget *calendar;
calendar->setMinimumDate(min);
calendar->setMaximumDate(max);
If either the min or max parameters are not valid QDate objects, this function does nothing.
See also setMinimumDate() and setMaximumDate().
Upstream PySide2 reference signatures (binding differences may apply):
setDateRange(self, min: PySide2.QtCore.QDate, max: PySide2.QtCore.QDate) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setDateRange
setDateTextFormat
setDateTextFormat(date: Any, format: Any) -> None
X.setDateTextFormat(date, format)
Supplemental documentation: Qt 5 reference:
void QCalendarWidget::setDateTextFormat(const QDate \&date, const QTextCharFormat \&format)
Sets the format used to render the given date to that specified by format.
If date is null, all date formats are cleared.
See also dateTextFormat().
Upstream PySide2 reference signatures (binding differences may apply):
setDateTextFormat(self, date: PySide2.QtCore.QDate, format: PySide2.QtGui.QTextCharFormat) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setDateTextFormat
setFirstDayOfWeek
setFirstDayOfWeek(dayOfWeek: Any) -> None
X.setFirstDayOfWeek(dayOfWeek)
Upstream PySide2 reference signatures (binding differences may apply):
setFirstDayOfWeek(self, dayOfWeek: PySide2.QtCore.Qt.DayOfWeek) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setFirstDayOfWeek
setGridVisible
setGridVisible(show: bool) -> None
X.setGridVisible(show)
Upstream PySide2 reference signatures (binding differences may apply):
setGridVisible(self, show: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setGridVisible
setHeaderTextFormat
setHeaderTextFormat(format: Any) -> None
X.setHeaderTextFormat(format)
Supplemental documentation: Qt 5 reference:
void QCalendarWidget::setHeaderTextFormat(const QTextCharFormat \&format)
Sets the text char format for rendering the header to format. If you also set a weekday text format, this format's foreground and background color will take precedence over the header's format. The other formatting information will still be decided by the header's format.
See also headerTextFormat().
Upstream PySide2 reference signatures (binding differences may apply):
setHeaderTextFormat(self, format: PySide2.QtGui.QTextCharFormat) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setHeaderTextFormat
setHorizontalHeaderFormat
setHorizontalHeaderFormat(format: Any) -> None
X.setHorizontalHeaderFormat(format)
Upstream PySide2 reference signatures (binding differences may apply):
setHorizontalHeaderFormat(self, format: PySide2.QtWidgets.QCalendarWidget.HorizontalHeaderFormat) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setHorizontalHeaderFormat
setMaximumDate
setMaximumDate(date: Any) -> None
X.setMaximumDate(date)
Upstream PySide2 reference signatures (binding differences may apply):
setMaximumDate(self, date: PySide2.QtCore.QDate) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setMaximumDate
setMinimumDate
setMinimumDate(date: Any) -> None
X.setMinimumDate(date)
Upstream PySide2 reference signatures (binding differences may apply):
setMinimumDate(self, date: PySide2.QtCore.QDate) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setMinimumDate
setNavigationBarVisible
setNavigationBarVisible(visible: bool) -> None
X.setNavigationBarVisible(visible)
Upstream PySide2 reference signatures (binding differences may apply):
setNavigationBarVisible(self, visible: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setNavigationBarVisible
setSelectedDate
setSelectedDate(date: Any) -> None
X.setSelectedDate(date)
Upstream PySide2 reference signatures (binding differences may apply):
setSelectedDate(self, date: PySide2.QtCore.QDate) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setSelectedDate
setSelectionMode
setSelectionMode(mode: Any) -> None
X.setSelectionMode(mode)
Upstream PySide2 reference signatures (binding differences may apply):
setSelectionMode(self, mode: PySide2.QtWidgets.QCalendarWidget.SelectionMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setSelectionMode
setVerticalHeaderFormat
setVerticalHeaderFormat(format: Any) -> None
X.setVerticalHeaderFormat(format)
Upstream PySide2 reference signatures (binding differences may apply):
setVerticalHeaderFormat(self, format: PySide2.QtWidgets.QCalendarWidget.VerticalHeaderFormat) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setVerticalHeaderFormat
setWeekdayTextFormat
setWeekdayTextFormat(dayOfWeek: Any, format: Any) -> None
X.setWeekdayTextFormat(dayOfWeek, format)
Supplemental documentation: Qt 5 reference:
void QCalendarWidget::setWeekdayTextFormat(Qt::DayOfWeek dayOfWeek, const QTextCharFormat \&format)
Sets the text char format for rendering of day in the week dayOfWeek to format. The format will take precedence over the header format in case of foreground and background color. Other text formatting information is taken from the headers format.
See also weekdayTextFormat() and setHeaderTextFormat().
Upstream PySide2 reference signatures (binding differences may apply):
setWeekdayTextFormat(self, dayOfWeek: PySide2.QtCore.Qt.DayOfWeek, format: PySide2.QtGui.QTextCharFormat) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#setWeekdayTextFormat
showNextMonth
showNextMonth() -> None
X.showNextMonth()
Supplemental documentation: Qt 5 reference:
[slot] void QCalendarWidget::showNextMonth()
Shows the next month relative to the currently displayed month. Note that the selected date is not changed.
See also showPreviousMonth(), setCurrentPage(), and setSelectedDate().
Upstream PySide2 reference signatures (binding differences may apply):
showNextMonth(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#showNextMonth
showNextYear
showNextYear() -> None
X.showNextYear()
Supplemental documentation: Qt 5 reference:
[slot] void QCalendarWidget::showNextYear()
Shows the currently displayed month in the next year relative to the currently displayed year. Note that the selected date is not changed.
See also showPreviousYear(), setCurrentPage(), and setSelectedDate().
Upstream PySide2 reference signatures (binding differences may apply):
showNextYear(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#showNextYear
showPreviousMonth
showPreviousMonth() -> None
X.showPreviousMonth()
Supplemental documentation: Qt 5 reference:
[slot] void QCalendarWidget::showPreviousMonth()
Shows the previous month relative to the currently displayed month. Note that the selected date is not changed.
See also showNextMonth(), setCurrentPage(), and setSelectedDate().
Upstream PySide2 reference signatures (binding differences may apply):
showPreviousMonth(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#showPreviousMonth
showPreviousYear
showPreviousYear() -> None
X.showPreviousYear()
Supplemental documentation: Qt 5 reference:
[slot] void QCalendarWidget::showPreviousYear()
Shows the currently displayed month in the previous year relative to the currently displayed year. Note that the selected date is not changed.
See also showNextYear(), setCurrentPage(), and setSelectedDate().
Upstream PySide2 reference signatures (binding differences may apply):
showPreviousYear(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#showPreviousYear
showSelectedDate
showSelectedDate() -> None
X.showSelectedDate()
Supplemental documentation: Qt 5 reference:
[slot] void QCalendarWidget::showSelectedDate()
Shows the month of the selected date.
See also selectedDate() and setCurrentPage().
Upstream PySide2 reference signatures (binding differences may apply):
showSelectedDate(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#showSelectedDate
showToday
showToday() -> None
X.showToday()
Supplemental documentation: Qt 5 reference:
[slot] void QCalendarWidget::showToday()
Shows the month of the today's date.
See also selectedDate() and setCurrentPage().
Upstream PySide2 reference signatures (binding differences may apply):
showToday(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#showToday
sizeHint
instance-attribute
sizeHint: QSize
Qt 5 reference:
[override virtual] QSize QCalendarWidget::sizeHint() const
Reimplements an access function for property: QWidget::sizeHint.
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#sizeHint
updateCell
updateCell(date: Any) -> None
X.updateCell(date)
Supplemental documentation: Qt 5 reference:
[protected] void QCalendarWidget::updateCell(const QDate \&date)
Updates the cell specified by the given date unless updates are disabled or the cell is hidden.
This function was introduced in Qt 4.4.
See also updateCells(), yearShown(), and monthShown().
Upstream PySide2 reference signatures (binding differences may apply):
updateCell(self, date: PySide2.QtCore.QDate) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#updateCell
updateCells
updateCells() -> None
X.updateCells()
Supplemental documentation: Qt 5 reference:
[protected] void QCalendarWidget::updateCells()
Updates all visible cells unless updates are disabled.
This function was introduced in Qt 4.4.
See also updateCell().
Upstream PySide2 reference signatures (binding differences may apply):
updateCells(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#updateCells
verticalHeaderFormat
instance-attribute
verticalHeaderFormat: Any
Qt 5 reference:
verticalHeaderFormat : VerticalHeaderFormat
This property holds the format of the vertical header.
The default value is QCalendarWidget::ISOWeekNumber.
Access functions:
| QCalendarWidget::VerticalHeaderFormat | verticalHeaderFormat() const |
|---|---|
| void | setVerticalHeaderFormat(QCalendarWidget::VerticalHeaderFormat format) |
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#verticalHeaderFormat
weekdayTextFormat
weekdayTextFormat(dayOfWeek: Any) -> Any
X.weekdayTextFormat(dayOfWeek) -> PythonQt.QtGui.QTextCharFormat
Supplemental documentation: Qt 5 reference:
QTextCharFormat QCalendarWidget::weekdayTextFormat(Qt::DayOfWeek dayOfWeek) const
Returns the text char format for rendering of day in the week dayOfWeek.
See also setWeekdayTextFormat() and headerTextFormat().
Upstream PySide2 reference signatures (binding differences may apply):
weekdayTextFormat(self, dayOfWeek: PySide2.QtCore.Qt.DayOfWeek) -> PySide2.QtGui.QTextCharFormat
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#weekdayTextFormat
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QCalendarWidget.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QCalendarWidget.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QCalendarWidget.windowTitleChanged; argument details are not documented.
yearShown
yearShown() -> int
X.yearShown() -> int
Supplemental documentation: Qt 5 reference:
int QCalendarWidget::yearShown() const
Returns the year of the currently displayed month. Months are numbered from 1 to 12.
See also monthShown() and setCurrentPage().
Upstream PySide2 reference signatures (binding differences may apply):
yearShown(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qcalendarwidget.html#yearShown