Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_widgets_qdatetimeedit.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
10
11
15
16
21
22
24setDateRange(min, max);
26
27
32
33
35setTimeRange(min, max);
37
38
The QDateTimeEdit class provides a widget for editing dates and times.
void setMinimumDate(QDate min)
void setMaximumDate(QDate max)
void setDisplayFormat(const QString &format)
static QDate currentDate()
Returns the system clock's current date.
setMinimumDateTime(min)
[1]
setDateTimeRange(min, max)
[0]
setTimeRange(min, max)
[4]
dateEdit setMinimumDate(QDate::currentDate().addDays(-365))
setDateRange(min, max)
[2]
QDateTimeEdit * dateEdit
[0]
setMaximumTime(max)
setMaximumDateTime(max)
dateEdit setMaximumDate(QDate::currentDate().addDays(365))
setMinimumTime(min)
[5]