mirror of https://github.com/status-im/nimqml.git
Fixed metaObject method call
This commit is contained in:
parent
6d33feece6
commit
97437040c6
|
@ -54,7 +54,7 @@ proc qobjectCallback(qobjectPtr: pointer, slotNamePtr: DosQVariant, numArguments
|
|||
|
||||
proc setup*(self: QObject) =
|
||||
## Initialize a new QObject
|
||||
dos_qobject_create(self.vptr, addr(self[]), QObject.staticMetaObject.vptr, qobjectCallback)
|
||||
dos_qobject_create(self.vptr, addr(self[]), self.metaObject.vptr, qobjectCallback)
|
||||
|
||||
proc delete*(self: QObject) =
|
||||
## Delete a QObject
|
||||
|
|
Loading…
Reference in New Issue