TextEdit with Arabic chars and img tag



  • Hello!
    Have an issue, when type some text in the TextEdit and using Arabic language and then add <img > tag, the picture draw at the front of text, how can i solve it?
    this data i get, when using method : inp.getText(0, inp.length) where inp - TextEdit
    @
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
    <html><head><meta name="qrichtext" content="1" /><style type="text/css">
    p, li { white-space: pre-wrap; }
    </style></head><body >
    <p dir='rtl' > لاصا< img src="image://emoticons/63x63/confused.png" width="63" height="63" /></p></body></html>@
    after < and before tag img code don't contains a space.
    This is screen what i'm mean by picture draw at the front of text
    !http://i59.tinypic.com/2ewzczk.jpg(Screen)!
    tnx 4 answers



  • any idea?

    when i add image this pic begin draw from left to right, i think issue somewhere there. someone know how to say qml (html?) to draw img from right to left ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.