QTimeEdit Class

QTimeEdit クラスは、QDateTimeEdit ウィジェットに基づいて時間を編集するウィジェットを提供します。詳細...

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

パブリック関数

QTimeEdit(QWidget *parent = nullptr)
QTimeEdit(QTime time, QWidget *parent = nullptr)
virtual ~QTimeEdit()

詳細説明

QTimeEdit によって提供されるプロパティと関数の多くは、QDateTimeEdit で実装されています。これらは、このクラスの関連するプロパティです:

  • time ウィジェットによって表示される時間を保持します。
  • minimumTime ユーザが設定できる最小(最も早い)時刻を定義します。
  • maximumTime ユーザが設定できる最大(最新)時刻を定義します。
  • displayFormat ウィジェットに表示される時刻をフォーマットするために使用される文字列を含みます。

QDateEdit およびQDateTimeEditも参照のこと

メンバ関数ドキュメント

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

空のタイムエディタをparent で構築します。

[explicit] QTimeEdit::QTimeEdit(QTime time, QWidget *parent = nullptr)

空のタイムエディタをparent で構築します。時刻はtime に設定されます。

[virtual noexcept] QTimeEdit::~QTimeEdit()

破壊者。

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