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()

破壊者。

© 2025 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.