QPlaceCategory Class
La classe `QPlaceCategory` rappresenta una categoria a cui può essere associato un ` QPlace `. Per saperne di più...
| Header: | #include <QPlaceCategory> |
| qmake: | QT += location |
Funzioni pubbliche
| QPlaceCategory() | |
| QPlaceCategory(const QPlaceCategory &other) | |
| QPlaceCategory(QPlaceCategory &&other) | |
| ~QPlaceCategory() | |
| QString | categoryId() const |
| QPlaceIcon | icon() const |
| bool | isEmpty() const |
| QString | name() const |
| void | setCategoryId(const QString &identifier) |
| void | setIcon(const QPlaceIcon &icon) |
| void | setName(const QString &name) |
| void | setVisibility(QLocation::Visibility visibility) |
| QLocation::Visibility | visibility() const |
| QPlaceCategory & | operator=(const QPlaceCategory &other) |
Elementi non membri correlati
| bool | operator!=(const QPlaceCategory &lhs, const QPlaceCategory &rhs) |
| bool | operator==(const QPlaceCategory &lhs, const QPlaceCategory &rhs) |
Descrizione dettagliata
Le categorie vengono utilizzate per cercare i luoghi in base alle categorie a cui sono associati. L'elenco o l'albero delle categorie disponibili può essere ottenuto da QPlaceManager. La funzione QPlaceSearchRequest::setCategories() può essere utilizzata per limitare i risultati della ricerca ai luoghi con le categorie specificate.
Se l'API QGeoServiceProvider lo supporta, è possibile creare e rimuovere categorie. Questa funzionalità è disponibile nella classe QPlaceManager.
Documentazione sulle funzioni membro
QPlaceCategory::QPlaceCategory()
Crea una categoria.
[noexcept] QPlaceCategory::QPlaceCategory(const QPlaceCategory &other)
Crea una categoria che è una copia di other.
[constexpr noexcept default] QPlaceCategory::QPlaceCategory(QPlaceCategory &&other)
Crea un'istanza di ` QPlaceCategory` utilizzando il costrutto `move`.
[noexcept] QPlaceCategory::~QPlaceCategory()
Elimina la categoria.
QString QPlaceCategory::categoryId() const
Restituisce l'identificatore della categoria. L'identificatore della categoria è una stringa che identifica in modo univoco questa categoria all'interno di un determinato QPlaceManager. L'identificatore ha significato solo per l'QPlaceManager che lo ha generato e non è trasferibile tra i gestori.
Vedi anche setCategoryId().
QPlaceIcon QPlaceCategory::icon() const
Restituisce l'icona associata alla categoria.
Vedi anche setIcon().
bool QPlaceCategory::isEmpty() const
Restituisce un valore booleano che indica se tutti i campi della categoria "luogo" sono vuoti o meno.
QString QPlaceCategory::name() const
Restituisce il nome della categoria.
Vedi anche setName().
void QPlaceCategory::setCategoryId(const QString &identifier)
Imposta l'identifier e della categoria.
Vedi anche categoryId().
void QPlaceCategory::setIcon(const QPlaceIcon &icon)
Imposta l'icon e della categoria.
Vedi anche icon().
void QPlaceCategory::setName(const QString &name)
Imposta l'name e della categoria.
Vedi anche name().
void QPlaceCategory::setVisibility(QLocation::Visibility visibility)
Imposta l’ visibility e della categoria.
Vedi anche visibility().
QLocation::Visibility QPlaceCategory::visibility() const
Restituisce la visibilità della categoria.
Vedi anche setVisibility().
[noexcept] QPlaceCategory &QPlaceCategory::operator=(const QPlaceCategory &other)
Assegna “ other ” a questa categoria e restituisce un riferimento a tale categoria.
Non membri correlati
[noexcept] bool operator!=(const QPlaceCategory &lhs, const QPlaceCategory &rhs)
Restituisce true se lhs non è uguale a rhs; in caso contrario, restituisce false.
[noexcept] bool operator==(const QPlaceCategory &lhs, const QPlaceCategory &rhs)
Restituisce true se lhs è uguale a rhs; in caso contrario, restituisce false.
© 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.