02-05-2013 07:15 PM
I am trying to change the defaultimage on some ImageButtons at a point within my program, however it is not working for me. I am sure its something simple that I have overlooked.
Right now I am doing the following:
ImageButton* myButton = ImageButton::create()
I am doing this in C++ and I am likely doing something silly
Hopefully someone out there can point it out.
Solved! Go to Solution.
02-05-2013 08:01 PM
defaultImageSourceChanged etc are signals which are emitted when property value changes.
You need to call setters: myButton->setDefaultImageSource(...) etc.
When using builders (create() method), setters do not have 'set' prefix.