QTableWidgetSelectionRange Class
La classe QTableWidgetSelectionRange offre un modo per interagire con la selezione in un modello senza ricorrere agli indici del modello e a un modello di selezione. Per saperne di più...
| Intestazione: | #include <QTableWidgetSelectionRange> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
Funzioni pubbliche
| QTableWidgetSelectionRange() | |
| QTableWidgetSelectionRange(int top, int left, int bottom, int right) | |
| int | bottomRow() const |
| int | columnCount() const |
| int | leftColumn() const |
| int | rightColumn() const |
| int | rowCount() const |
| int | topRow() const |
Elementi non membri correlati
(since 6.3) bool | operator!=(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) |
(since 6.3) bool | operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) |
Descrizione dettagliata
La classe QTableWidgetSelectionRange memorizza le righe e le colonne in alto a sinistra e in basso a destra di un intervallo di selezione in una tabella. Le selezioni nella tabella possono essere costituite da diversi intervalli di selezione.
Nota: se un elemento all'interno dell'intervallo di selezione è contrassegnato come non selezionabile, ad esempio itemFlags() & Qt::ItemIsSelectable == 0, non apparirà nell'intervallo di selezione.
Vedi anche ` QTableWidget`.
Documentazione delle funzioni membro
[constexpr noexcept default] QTableWidgetSelectionRange::QTableWidgetSelectionRange()
Crea un intervallo di selezione della tabella vuoto, ovvero un intervallo in cui i valori di rowCount() e columnCount() sono pari a 0.
Vedi anche topRow(), leftColumn(), bottomRow() e rightColumn().
QTableWidgetSelectionRange::QTableWidgetSelectionRange(int top, int left, int bottom, int right)
Crea l'intervallo di selezione della tabella a partire dalle righe e dalle colonne specificate in top, left, bottom e right.
Vedi anche topRow(), leftColumn(), bottomRow() e rightColumn().
int QTableWidgetSelectionRange::bottomRow() const
Restituisce la riga inferiore dell'intervallo.
Vedi anche topRow(), rightColumn() e rowCount().
int QTableWidgetSelectionRange::columnCount() const
Restituisce il numero di colonne nell'intervallo.
Ciò equivale a rightColumn() - leftColumn() + 1.
Vedi anche rowCount(), leftColumn() e rightColumn().
int QTableWidgetSelectionRange::leftColumn() const
Restituisce la colonna di sinistra dell'intervallo.
Vedi anche rightColumn(), topRow() e columnCount().
int QTableWidgetSelectionRange::rightColumn() const
Restituisce la colonna di destra dell'intervallo.
Vedi anche leftColumn(), bottomRow() e columnCount().
int QTableWidgetSelectionRange::rowCount() const
Restituisce il numero di righe nell'intervallo.
Ciò equivale a bottomRow() - topRow() + 1.
Vedi anche columnCount(), topRow() e bottomRow().
int QTableWidgetSelectionRange::topRow() const
Restituisce la riga superiore dell'intervallo.
Vedi anche bottomRow(), leftColumn() e rowCount().
Elementi non membri correlati
[noexcept, since 6.3] bool operator!=(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs)
Restituisce true se lhs e rhs non sono uguali, altrimenti restituisce false.
Questa funzione è stata introdotta in Qt 6.3.
[noexcept, since 6.3] bool operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs)
Restituisce true se lhs e rhs sono uguali, altrimenti restituisce false.
Questa funzione è stata introdotta in Qt 6.3.
© 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.