mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #64] Retrieve Dotnet Signal Arguments in QML #38
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#38
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?
Originally created by @ghost on GitHub (Sep 5, 2018).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/64
Hi, thank you for this wonderful project! It's awesome!
I wonder if it's possible to retrieve signal arguments in qml without using function(..). Ex:
Maybe, the Signal would have to be declared like this:
Is it possible already somehow?
@pauldotknopf commented on GitHub (Sep 5, 2018):
I don't think it's possible.
0ebef45/src/native/QmlNet/QmlNet/types/NetSignalInfo.cpp (L43)f62f3c0/src/native/QmlNet/QmlNet/qml/NetValueMetaObject.cpp (L30)Qt's
QMetaObjectBuilder::addSignaldoesn't have much documentation, but from what I've seen, it accepts a format likeMethodName(Qstring, QVariant). I'll try to see if something likeMethodName(Qstring testParam1, QVariant testParam2)works, but I don't think it does.I don't have time ATM to look at this, as I am working on getting this project backed into my embedded Linux environment. I will update this issue when I get to it.
Also, feel free to hack around and see if what I mentioned works. PR's are welcome.