このページでは

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

デストラクタ。

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