Results 1 to 12 of 12

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

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

    Unhappy read the file which has the format of odp!

    hello everybody! if i want to open file with the odp format using qt4.5? what can i do ?
    where has the example for it ? ls someone has the experience about it?
    thank you! wait for your relay!
    Last edited by sunnysun520; 13th May 2009 at 14:32.

  2. #2
    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!

    please help me .....

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 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!

    Qt can't read Open Document files. You can use QDesktopServices::openUrl() to open it with a default application handling that file type in your system (which is OpenOffice or KOffice probably).
    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.


  4. The following user says thank you to wysota for this useful post:

    sunnysun520 (13th May 2009)

  5. #4
    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!

    Thanks! but I find source code of reading odt file.

  6. #5
    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!

    nobody koow?

  7. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 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.


  8. #7
    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à !

  9. #8
    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!

  10. #9
    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

  11. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 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.


  12. #11
    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!

  13. #12
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

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

    Quote Originally Posted by sunnysun520 View Post
    hello everybody! if i want to open file with the odp format using qt4.5? what can i do ?
    where has the example for it ? ls someone has the experience about it?
    thank you! wait for your relay!
    You have been trying to read various office files, are you developing QtOffice? There is already an OpenOffice

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.