diff options
author | Miguel Costa <miguel.costa@qt.io> | 2025-07-27 19:31:05 +0200 |
---|---|---|
committer | Miguel Costa <miguel.costa@qt.io> | 2025-08-07 15:05:26 +0000 |
commit | 29bab49d50a69876b09b193783df2878386c421b (patch) | |
tree | 1e216f18bc06f8b425302be4505fb602b59b46aa | |
parent | fe880a3ea023c62e8909e967adba5b6f0407136d (diff) |
Change-Id: Iaa8be876b667d8c7f300dca8ee3c2bd24ac349d7
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r-- | include/qdotnetdelegate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qdotnetdelegate.h b/include/qdotnetdelegate.h index 25fc3a8..63aaecb 100644 --- a/include/qdotnetdelegate.h +++ b/include/qdotnetdelegate.h @@ -22,6 +22,8 @@ class QDotNetDelegate : public QDotNetObject public: Q_DOTNET_OBJECT_INLINE(QDotNetDelegate, "System.Delegate"); + QDotNetDelegate() : QDotNetObject(nullptr) { } + T invoke(TArg... arg) const { return method("Invoke", fnInvoke).invoke(*this, arg...); |