woboq/verdigris

W_PROPERTY does not seem to handle overloaded slots

Closed this issue · 2 comments

It can be witnessed by adding for instance a slot that takes an int in the PropertyTutorial example ; I tried to add qOverloads but couldn't make it work

qOverload should work, but should be applied to the variant without the READ / WRITE property.

W_PROPERTY(QString foo, qOverload<>(&Foobar::getter),  qOverload<QString>(&Foobar::setter))

thanks, that's what I was missing