In questa pagina

QTimeEdit Class

La classe QTimeEdit fornisce un widget per la modifica degli orari basato sul widget QDateTimeEdit. Per saperne di più...

Intestazione: #include <QTimeEdit>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
Eredita da: QDateTimeEdit

Funzioni pubbliche

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

Descrizione dettagliata

Orario modificabile

Molte delle proprietà e delle funzioni fornite da QTimeEdit sono implementate in QDateTimeEdit. Queste sono le proprietà rilevanti di questa classe:

  • time contiene l'ora visualizzata dal widget.
  • minimumTime definisce l'ora minima (più precoce) che può essere impostata dall'utente.
  • maximumTime definisce l'ora massima (più tardiva) che può essere impostata dall'utente.
  • displayFormat contiene una stringa utilizzata per formattare l'ora visualizzata nel widget.

Vedi anche QDateEdit e QDateTimeEdit.

Documentazione delle funzioni membro

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

Crea un editor temporale vuoto con un parent.

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

Crea un editor di ora vuoto con un oggetto di tipo ` parent`. L'ora è impostata su ` time`.

[virtual noexcept] QTimeEdit::~QTimeEdit()

Distruttore.

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