maartenS
10th September 2008, 13:23
Hi,
I'm making a program where I use information from forms to create a QTextDocument.
So far I managed to put the result of a form ie a QComboBox in the QTextEdit, but now I want to change that text if the QComboBox changes its value. Is this possible with QTextCursor? I found an easy way to insert a block, but couldn't find an easy way to change or delete is.
Ideally I would like to 'label' a block of text (ie. block1) and then make a function to change it (ie updateBlock(block1); ).
Can anyone give me suggestions in how to achieve this?
Thanks
I'm making a program where I use information from forms to create a QTextDocument.
So far I managed to put the result of a form ie a QComboBox in the QTextEdit, but now I want to change that text if the QComboBox changes its value. Is this possible with QTextCursor? I found an easy way to insert a block, but couldn't find an easy way to change or delete is.
Ideally I would like to 'label' a block of text (ie. block1) and then make a function to change it (ie updateBlock(block1); ).
Can anyone give me suggestions in how to achieve this?
Thanks