12-23-2013 02:06 AM - edited 12-23-2013 02:06 AM
"buttonid.clicked()" works wheras "buttonid.textChanged("sometext")" does not work. clicked and textChanged both are signals associated with the Button control. Therefore how do I find out which functions would work, and which would not work.
12-23-2013 02:52 AM - edited 12-23-2013 02:57 AM
12-23-2013 05:12 AM
What parameters you can pass (if any) will be listed in the documentation...
12-23-2013 05:21 AM
I think you are slightly confused about the differences between a signal and a slot, take a good read of this and you might be less confused...
textChanged is defined as a signal, and more so uses the Q_PROPERTY macro,
Q_PROPERTY(QString text READ text WRITE setText RESET resetText NOTIFY textChanged FINAL)
Here NOTIFY is specifying that the property 'text' has a signal associated with it called textChanged() that will pass the text string on it being changed.
Q_SIGNALS: void textChanged(QString text);
Read more about the Q_PROPERTY macro here...