Re: [Qt-creator] Creator destroys my HTML code
Hi Nikos, Whenever I edit a QTextEdit or QTextBrowser, Creator always utterly destroys it by inserting CSS code, forcing particular fonts and font sizes, ignoring application/system defaults, and other evil things, resulting in breakage on other systems than my own. Is that while editing rich text properties in Qt Designer? - If so, it might be related to http://bugreports.qt.nokia.com/browse/QTBUG-10890 , which was fixed with change 08a9924cc69e0c44aae1abfd8500cd62f6e3d73a for Qt 4.8. The rich text editor dialog contains an optional filter setting which causes the HTML generated by the conversion to be simpler. Regards, Friedemann -- Friedemann Kleint Nokia, Qt Development Frameworks ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Creator destroys my HTML code
Don't use QTextEdit for things that need HTML accuracy. It's not intended for that use -- try QtWebKit if you need actual HTML editing. QTextEdit just uses an HTML subset to provide basic rich text support. /s/ Adam On Mon, Sep 27, 2010 at 7:28 PM, Nikos Chantziaras rea...@arcor.de wrote: Whenever I edit a QTextEdit or QTextBrowser, Creator always utterly destroys it by inserting CSS code, forcing particular fonts and font sizes, ignoring application/system defaults, and other evil things, resulting in breakage on other systems than my own. Is there a way around that feature? I'm using Creator 2.0.1 on Linux. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Creator destroys my HTML code
I don't need HTML accuracy, actually. All I need is to have my *basic* HTML formatted stuff not messed around with. And of course the font not forced to DejaVu Sans 9pt :-/ On 09/28/2010 05:10 AM, Coda Highland wrote: Don't use QTextEdit for things that need HTML accuracy. It's not intended for that use -- try QtWebKit if you need actual HTML editing. QTextEdit just uses an HTML subset to provide basic rich text support. /s/ Adam On Mon, Sep 27, 2010 at 7:28 PM, Nikos Chantziarasrea...@arcor.de wrote: Whenever I edit a QTextEdit or QTextBrowser, Creator always utterly destroys it by inserting CSS code, forcing particular fonts and font sizes, ignoring application/system defaults, and other evil things, resulting in breakage on other systems than my own. Is there a way around that feature? I'm using Creator 2.0.1 on Linux. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator