mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[PR #150] [MERGED] QByteArray support #225
Labels
No labels
bug
enhancement
help wanted
help wanted
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/qmlnet#225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/qmlnet/qmlnet/pull/150
Author: @geigertom
Created: 7/4/2019
Status: ✅ Merged
Merged: 7/9/2019
Merged by: @pauldotknopf
Base:
develop← Head:qbytearray_support📝 Commits (4)
f38b38fAdded QByteArray support758e3d3Remove blank lines5e8544bSupport null byte arrays.e431882Increasing the number of allowed registered types for unit tests.📊 Changes
13 files changed (+247 additions, -27 deletions)
View changed files
📝
src/native/QmlNet/QmlNet.h(+2 -1)📝
src/native/QmlNet/QmlNet/qml/NetQObjectArg.cpp(+3 -0)📝
src/native/QmlNet/QmlNet/qml/NetValueMetaObjectPacker.cpp(+3 -0)📝
src/native/QmlNet/QmlNet/qml/NetVariant.cpp(+33 -0)📝
src/native/QmlNet/QmlNet/qml/NetVariant.h(+2 -0)📝
src/native/QmlNet/QmlNet/qml/QQmlApplicationEngine.cpp(+20 -0)➕
src/net/Qml.Net.Tests/Qml/ByteArrayTests.cs(+59 -0)📝
src/net/Qml.Net.Tests/Qml/NetVariantTests.cs(+15 -0)📝
src/net/Qml.Net/Internal/CodeGen/CodeGen.Methods.cs(+27 -0)📝
src/net/Qml.Net/Internal/CodeGen/CodeGen.cs(+34 -25)📝
src/net/Qml.Net/Internal/Helpers.cs(+2 -0)📝
src/net/Qml.Net/Internal/Qml/NetVariant.cs(+45 -0)📝
src/net/Qml.Net/NetVariantType.cs(+2 -1)📄 Description
Added support for
QByteArray.Create
QByteArrayin .NET usingbyte[]:Receive
QByteArrayin .NET:In QML, there is no direct way to access
QByteArrayobjects, they are, however, implicitly converted to javascriptArrayBufferobjects [see: Qt docs] which can be used like this:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.