このページでは

QDateEdit Class

QDateEdit クラスは、QDateTimeEdit ウィジェットをベースにした、日付を編集するためのウィジェットを提供します。詳細...

ヘッダー: #include <QDateEdit>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
継承元: QDateTimeEdit

パブリック関数

QDateEdit(QWidget *parent = nullptr)
QDateEdit(QDate date, QWidget *parent = nullptr)
virtual ~QDateEdit()

詳細な説明

編集可能な日付

QDateEdit が提供するプロパティや関数の多くは、QDateTimeEdit クラスで実装されています。このクラスに関連するプロパティは以下の通りです:

  • date ウィジェットに表示される日付を保持します。
  • minimumDate ユーザーが設定できる最小(最も早い)日付を定義します。
  • maximumDate ユーザーが設定できる最大(最も新しい)日付を定義します。
  • displayFormat ウィジェットに表示される日付の書式設定に使用される文字列を格納します。

QTimeEdit およびQDateTimeEditも参照してください 。

メンバ関数のドキュメント

[explicit] QDateEdit::QDateEdit(QWidget *parent = nullptr)

parent を使用して、空の日付エディタを作成します。

[explicit] QDateEdit::QDateEdit(QDate date, QWidget *parent = nullptr)

parent を使用して、空の日付エディタを作成します。日付はdate に設定されます。

[virtual noexcept] QDateEdit::~QDateEdit()

デストラクタ。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.