Discussion:
how to update data of controls in viewml??
wjj_external
2002-10-24 07:53:49 UTC
Permalink
I want to change the data of a control named HTMLTextInput.
When I used HTMLInput::setValue() to change the data , the change was not displayed on screen.

I find out that HTMLTextInput::slotTextChanged can be "QT_connected" to QEditLine to update the data. but this function is protected and I can not use it by calling it directly. How to update the changed data? Is there any offical ways to update data in HTML controls? Or I have to do something shit :-(
wjj_external
2002-10-24 07:53:41 UTC
Permalink
I want to change the data of a control named HTMLTextInput.
When I used HTMLInput::setValue() to change the data , the change was not displayed on screen.

I find out that HTMLTextInput::slotTextChanged can be "QT_connected" to QEditLine to update the data. but this function is protected and I can not use it by calling it directly. How to update the changed data? Is there any offical ways to update data in HTML controls? Or I have to do something shit :-(
wjj_external
2002-10-24 09:10:30 UTC
Permalink
I have add a member function in "HTMLTextInput" to use the protected data memeber(HTMLTextInput::widget). And the data is updated now. But I still want to now if there is better way to do so.
Loading...