-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.11
-
None
-
-
3
Qt's tooling gets confused, as it doesn't know the typedef for nested messages , like in the chat example:
class FileMessage : public QProtobufMessage { Q_PROTOBUF_OBJECT QML_VALUE_TYPE(fileMessage) Q_PROPERTY(chat::FileMessage::Continuation *continuation_p READ continuation_p WRITE setContinuation_p SCRIPTABLE false) Q_PROPERTY(chat::FileMessage::Continuation continuation READ continuation WRITE setContinuation) public: using Continuation = FileMessage_QtProtobufNested::Continuation; const FileMessage_QtProtobufNested::Continuation &continuation() const &; FileMessage_QtProtobufNested::Continuation &mutContinuation() &; }
To see the issue run qtgrpc_chat_client_qmllint:
Warning: /Users/ddob/Qt/qt6/qtgrpc/examples/grpc/chat/client/ChatMessages/FileContinuat
ionDelegate.qml:18:26: Type "chat::FileMessage::Continuation" of property "continuation
" not found. This is likely due to a missing dependency entry or a type not being expos
ed declaratively. [unresolved-type]
to: root.message.continuation.count