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

QTextDocumentWriter: Bad ODF support

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P4: Low 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

      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.

        1. ODF_Export_Ex.zip
          23 kB
        2. odf.jpg
          odf.jpg
          187 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes