Results 1 to 6 of 6

Thread: Creating a eBook/ePaper reader inside an application

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    165
    Thanked 2 Times in 2 Posts

    Default Creating a eBook/ePaper reader inside an application

    Hello!

    I'm planning to create a eBook/ePaper reader (such as Adobe Reader) to be put inside an aplication (in the QMainWindow, to be more precise), but I have absolutely no idea of how to do it. The desire is to have the window with a QTreeWidget in the left size, where all the eBooks and ePapers in a given folder would be showed by theyr name and, once the user double click in the name, the software would open the eBook in the right side with a SlideBar, zoom, and maybe something more. For the time being, only pdf.

    But what should I do? Which class am I supposed to use? QWidget? Scroll Area? QFrame? QGraphicsView?

    I noticed the Nokia post (http://www.developer.nokia.com/Commu...L_EBook_Reader), but it uses QML which I don't want to use.

    Another option would be to open Adobe Reader inside my software, as an application inside another, but I don't know how to do that ether and I don't like the idea that my software would be depended on another software to work.


    I would be glad if somebody could give me at least the "path of the stones" regarding this, or else point to some examples already done in Qt so I could study them.


    Thanks!

    Momergil

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Creating a eBook/ePaper reader inside an application

    Start by finding something to display a PDF that you can incorporate into the project (consider the licenses also). Once you know how that works, and how to incorporate it into a simple Qt project, then you can start to ponder how to make its output appear inside a Qt widget.

  3. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    165
    Thanked 2 Times in 2 Posts

    Default Re: Creating a eBook/ePaper reader inside an application

    Quote Originally Posted by ChrisW67 View Post
    Start by finding something to display a PDF that you can incorporate into the project (consider the licenses also). Once you know how that works, and how to incorporate it into a simple Qt project, then you can start to ponder how to make its output appear inside a Qt widget.
    Hmmm, no idea how to do the reader by myself? As I sad, it will still be better if I could create a pdf reader in my software rather than calling and external app.


    Momergil

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

    Default Re: Creating a eBook/ePaper reader inside an application

    So it's either poppler or parsing and rendering pdf files yourself. The project you mentioned in your original post only handled HTML and not PDF.
    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.


  5. #5
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    165
    Thanked 2 Times in 2 Posts

    Default Re: Creating a eBook/ePaper reader inside an application

    Quote Originally Posted by wysota View Post
    So it's either poppler or parsing and rendering pdf files yourself. The project you mentioned in your original post only handled HTML and not PDF.
    Hello wysota,

    Well, I'm not sure if I understood what you sad, specially your comment that "The project you mentioned in your original post only handled HTML and not PDF.", since I explicitaly mentioned "pdf" in my post (4th text line).

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

    Default Re: Creating a eBook/ePaper reader inside an application

    You posted a link to a "Nokia post" which "uses QML which you don't want to use". So first you want to handle PDF and not HTML which makes the post totally irrelevant to your problem (regardless if it uses QML or smoke signals). Instead of worrying about what widgets to use, you should answer the question "how do I parse PDF 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.


Similar Threads

  1. Replies: 3
    Last Post: 20th October 2010, 23:36
  2. Qt 4 book 2nd Edition legally and freely available as ebook?
    By jamadagni in forum General Discussion
    Replies: 0
    Last Post: 17th May 2008, 12:57
  3. Is the ebook of GUI Design Handbook available to download?
    By rajesh in forum General Discussion
    Replies: 1
    Last Post: 6th February 2007, 14:02
  4. Practical Qt ebook anyone?
    By christopher in forum Qt Programming
    Replies: 8
    Last Post: 1st September 2006, 14:59
  5. Replies: 1
    Last Post: 18th March 2006, 11:18

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.