Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.10.1
-
Qt 5.10.1 MSVC2015 64bit
Windows 7 Professional 64bit Service Pack 1, Intel Core i5-6500 3.20GHz, 8GB memory
Microsoft Visual C++ Compiler 14.0 (amd64)
x64 CDB debugger
-
dbffff0116f9618902cf4e9615a0ca6a7a6db9ed (qt/qtbase/dev)
Description
When I create a QTextDocument and insert a table, important information is set through a QTextTableFormat instance. That information gets lost when QTextDocument exports an ODT file, while being preserved in HTML and PDF files.
In particular table borders and cells padding (and maybe other details) are not set in the contents.xml file that constitutes the core of an .odt file. Therefore opening this file with an editor (I used Microsoft Word, Apache OpenOffice and LibreOffice) results in tables rendered with the default settings of that particular editor.
I am attaching some minimal code that produces three files - HTML, ODT and PDF - starting from the same QTextDocument object.
Attachments
Issue Links
- depends on
-
QTBUG-7056 QTextDocumentWriter ODF support does not include Table Borders.
- Closed
-
QTBUG-36152 Add support for styling the different borders in a table in CSS
- Closed
For Gerrit Dashboard: QTBUG-67622 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
244938,2 | Support table border color and cellpadding in ODF writer | dev | qt/qtbase | Status: MERGED | +2 | 0 |