Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-29555

QTextDocumentWriter: Bad ODF support

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 4.8.1, 4.8.4
    • GUI: Text handling
    • None
    • Linux Mint 13 with Qt4.8.1 from repository, gcc version 4.6.3

    Description

      QTextDocumentWriter with ODF support is not useful.

      I tried to make an odt file of the order form example ( http://doc.qt.digia.com/stable/richtext-orderform.html )

      I only changed the printing function to:

      void MainWindow::printFile()
      {
          QTextEdit *editor = static_cast<QTextEdit*>(letters->currentWidget());
          QFile f("test.odt");
          f.open(QIODevice::WriteOnly);
          QTextDocumentWriter tdw(&f,"odf");
          tdw.write(editor->document());
          f.close();
      }
      

      You can see the output of that in the attached image.

      Attachments

        1. ODF_Export_Ex.zip
          23 kB
        2. odf.jpg
          odf.jpg
          187 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              thrake Martin Gradzki
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes