Hi,

I am sending a file to the QTextView with piece of HTML code (Table).
Sometimes the results are shown in HTML i.e. as in a web browser
and sometime the actual code "file" is shown.
Then if the code is resubmitted it is shown properly (by the user).
I don't want to make the user submit twice the results.
How can i force the QTextView to accept the code in HTML
and how can I make it accept the file as a plain text?

I have tried to send the tags <html> and </html>
and it does not have the effect on the code.

thank for any help,
genick