Priority: P2: Important
Resolution: Out of scope
Affects Version/s: 4.8.3
Fix Version/s: None
Component/s: GUI: Text handling
Environment:QT 4.8.3, Open source (windows x86) version with MingGW GCC 4.4.0, Windows 7 OS (64 bit), QT creator 2.5.2
When QTextDocumentWriter is used to write a ODT file, with the content taken from a QTextEdit, and the text contains Unicode Indic characters, with font information like font name, size, weight, style etc, the resulting ODT file is corrupt.
All word processors fail to open the resulting odt file properly
I tried with following Word Processors
MS word 2010 - Fails to open the file itself, and terms it as corrupt
AbiWord 2.8.6 - Opens but content is invalid/not readable
Calligra 2.5 beta - Opens, content has no formatting information
libreoffice 220.127.116.11 - Opens, content has no formatting information
OpenOffice.org 3.4.1 - Opens, content has no formatting information
Also attaching various error screenshots, the invalid odf file and the program used to generate the file.
Following code was used to generate the file.
Also note, in the application, the text was set to bold and that also is not visible, as can be seen from the various screenshots provided here.