W_PROPERTY does not seem to handle overloaded slots
Closed this issue · 2 comments
jcelerier commented
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
ogoffart commented
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))
jcelerier commented
thanks, that's what I was missing