QScxmlError Class
La classe QScxmlError descrive gli errori restituiti dalla macchina a stati Qt SCXML durante l'analisi di un file SCXML. Per saperne di più...
| Intestazione: | #include <QScxmlError> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
| qmake: | QT += scxml |
Proprietà
|
Funzioni pubbliche
| QScxmlError() | |
| QScxmlError(const QString &fileName, int line, int column, const QString &description) | |
| QScxmlError(const QScxmlError &other) | |
| ~QScxmlError() | |
| int | column() const |
| QString | description() const |
| QString | fileName() const |
| bool | isValid() const |
| int | line() const |
| QString | toString() const |
| QScxmlError & | operator=(const QScxmlError &other) |
Vedi anche QScxmlStateMachine e QScxmlCompiler.
Documentazione sulle proprietà
[read-only] column : const int
Questa proprietà contiene il numero della colonna in cui si è verificato l'errore SCXML.
Funzioni di Access:
| int | column() const |
[read-only] description : const QString
Questa proprietà contiene una descrizione dell'errore SCXML.
Funzioni di accesso:
| QString | description() const |
[read-only] fileName : const QString
Questa proprietà contiene il nome del file in cui si è verificato l'errore SCXML.
Funzioni di accesso:
| QString | fileName() const |
[read-only] line : const int
Questa proprietà contiene il numero di riga in cui si è verificato l'errore SCXML.
Funzioni di accesso:
| int | line() const |
[read-only] valid : const bool
Questa proprietà indica se l'errore SCXML è valido.
Funzioni di accesso:
| bool | isValid() const |
Documentazione sulle funzioni membro
QScxmlError::QScxmlError()
Crea un nuovo errore SCXML non valido.
QScxmlError::QScxmlError(const QString &fileName, int line, int column, const QString &description)
Crea un nuovo errore SCXML valido che contiene il messaggio di errore “ description ”, nonché i valori “ fileName ”, “ line ” e “ column ”, ovvero i punti in cui si è verificato l’errore.
QScxmlError::QScxmlError(const QScxmlError &other)
Crea una copia di other.
[noexcept] QScxmlError::~QScxmlError()
Elimina l'errore SCXML.
int QScxmlError::column() const
Restituisce la colonna in cui si è verificato l'errore.
Nota: funzionegetter per la proprietà column.
QString QScxmlError::description() const
Restituisce il messaggio di errore.
Nota: funzionegetter per la proprietà description.
QString QScxmlError::fileName() const
Restituisce il nome del file in cui si è verificato l'errore.
Nota: Funzionegetter per la proprietà fileName.
bool QScxmlError::isValid() const
Restituisce ` true ` se l'errore è valido, altrimenti ` false `. È possibile creare un errore non valido solo chiamando il costruttore predefinito o assegnando un errore non valido.
Nota: Funzionegetter per la proprietà valid.
int QScxmlError::line() const
Restituisce la riga in cui si è verificato l'errore.
Nota: Funzionegetter per la proprietà line.
QString QScxmlError::toString() const
Questo metodo di convenienza converte un errore in una stringa. Restituisce il messaggio di errore nel formato: "nome_file:riga:colonna: errore: descrizione"
QScxmlError &QScxmlError::operator=(const QScxmlError &other)
Assegna l’ other o a questo errore SCXML e restituisce un riferimento a tale errore.
© 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.