GrpcChannelOptions QML Type
GrpcChannelOptions est une classe de stockage permettant de définir des options de canal supplémentaires. En savoir plus…
| Import Statement: | import QtGrpc |
| Since: | Qt 6.7 |
| In C++: | QGrpcChannelOptions |
Propriétés
- deadlineTimeout : int
- metadata : GrpcMetadata
- serializationFormat : enumeration
(since 6.8)
Description détaillée
Fournit un ensemble de propriétés permettant d'accéder aux options de canal utilisées par les gRPC™ canaux pour communiquer avec les services.
Voir aussi QGrpcChannelOptions.
Documentation sur les propriétés
deadlineTimeout : int
Définit une date limite pour une chaîne.
Voir également QGrpcChannelOptions::deadlineTimeout.
metadata : GrpcMetadata
Définit un pointeur vers l'objet de métadonnées utilisé pour un canal.
Voir également GrpcMetadata.
serializationFormat : enumeration [since 6.8]
Définit le format de sérialisation du canal. Le format « QtGrpc::SerializationFormat::Default » est utilisé par défaut.
| Constante | Description |
|---|---|
QtGrpc.SerializationFormat.Default | Préréglage d'QGrpcSerializationFormat par défaut. Ce préréglage construit un QProtobufSerializer avec un suffixe de type de contenu vide. |
QtGrpc.SerializationFormat.Protobuf | Le préréglage d’ QGrpcSerializationFormat protobuf intégré. Ce préréglage construit un QProtobufSerializer avec le suffixe de type de contenu « proto ». |
QtGrpc.SerializationFormat.Json | Le préréglage « JSON QGrpcSerializationFormat » intégré. Ce préréglage construit un ` QProtobufJsonSerializer ` avec le suffixe de type de contenu ` json `. |
Cette propriété a été introduite dans Qt 6.8.
Voir également QGrpcChannelOptions::serializationFormat, QtGrpc::SerializationFormat et QGrpcSerializationFormat.
© 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.