Results 1 to 12 of 12

Thread: read the file which has the format of odp!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: read the file which has the format of odp!

    I already told you - Qt doesn't handle Open Document files.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: read the file which has the format of odp!

    Quote Originally Posted by wysota View Post
    I already told you - Qt doesn't handle Open Document files.
    ..but feel free to unzip the file, load the inherited content.xml, use Qt's XML capabilities to modify it, save it, pack the odp again et voilà !

  3. #3
    Join Date
    May 2009
    Posts
    15
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: read the file which has the format of odp!

    Quote Originally Posted by wysota View Post
    I already told you - Qt doesn't handle Open Document files.
    but I already find the source code to open the ODT file and display it! it is certified that
    Qt can handle it. Isn't it?
    if you want to see the source,I can send it to you! thanks!

  4. #4
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: read the file which has the format of odp!

    feel free to share any source code..we are all source code hungry people

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: read the file which has the format of odp!

    Quote Originally Posted by sunnysun520 View Post
    but I already find the source code to open the ODT file and display it! it is certified that
    Qt can handle it. Isn't it?
    ODP is not ODT. The latter is text, the former is mostly graphics. Unless you write your own parser for the xml that makes the ODP and creates a graphics scene from it, you won't make any progress. With ODT this is much simpler because Qt has native support for text documents but still the ODT converter you found probably converts only a small subset of ODT to QTextDocument.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    May 2009
    Posts
    15
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: read the file which has the format of odp!

    Quote Originally Posted by wysota View Post
    ODP is not ODT. The latter is text, the former is mostly graphics. Unless you write your own parser for the xml that makes the ODP and creates a graphics scene from it, you won't make any progress. With ODT this is much simpler because Qt has native support for text documents but still the ODT converter you found probably converts only a small subset of ODT to QTextDocument.
    Ah, that accounts for it! thank you very much!

Similar Threads

  1. Read binary from file
    By weldpua2008 in forum Newbie
    Replies: 2
    Last Post: 3rd April 2009, 23:50
  2. QFile can't read a file
    By Raccoon29 in forum Qt Programming
    Replies: 3
    Last Post: 11th February 2009, 20:24
  3. [Java] read and write a file
    By mickey in forum General Programming
    Replies: 3
    Last Post: 22nd June 2008, 10:43
  4. How to open a file in Read Write mode
    By merry in forum Qt Programming
    Replies: 13
    Last Post: 16th November 2007, 14:40
  5. How to read text only as it is from file
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2007, 08:47

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.