Results 1 to 15 of 15

Thread: Qt GUI interface like Adobe Acrobat Reader

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2012
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt GUI interface like Adobe Acrobat Reader

    I want to do a multi-file format reader..I have the parsers done for few of the file formats that I need. But I want to make a GUI like Adobe Acrobat Reader.
    i.e show thumbnails of the files on the left sidebar and content on the right. And also it should take care of multiple pages in a document. and usual functionalities like going back and forward to pages etc..

    I don't want to use the Qt Design as it dumps all the stuff in one huge file. I need to make separate files for each part so that I can make modifications additions easily.

    So the problem is I don't know how to make the left sidebar fill up with images(thumbnails) and when clicked it should show up the respective content painted on the right. And I am using QGraphicsView framework so that my content are editable/draggable later. So something using qgraphicsview would be helpful.
    Could somebody give a small demo of what I need or atleast bits and pieces of what I am looking for. Right now my UI looks like a simple reader with menu on top and the central widget shows the content when a file is loaded through the file menu.

    So I need some help on the UI and also how to distribute and store things of UI in different classes and what has to be stored in what class and how the interaction takes place.
    Its not that I am asking for spoon feeding, but after several tries of failed attempts to get the kind of UI and functionality I planned to post it on this forum.
    any help would be appreciated.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt GUI interface like Adobe Acrobat Reader

    one thing at a time. You want a thumbnail viewer. do you know how to make a single thumbnail? is your sidebar also using graphicsview?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Jun 2012
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt GUI interface like Adobe Acrobat Reader

    thanks for the reply.

    yeh something like a thumbnail viewer, as this is not like an image viewer. I had tried to make single thumbnail using QImage scale function but couldnt make that work. Yes, the sidebar is a graphicsview as of now but I can make it into a QWdiget too, as it has no extra functionality other than clickable thumbnails on the left sidebar.

  4. #4
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt GUI interface like Adobe Acrobat Reader

    show what you have for thumbnail viewer in code and we can go on from there.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  5. #5
    Join Date
    Jun 2012
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt GUI interface like Adobe Acrobat Reader

    oh no I have not implemented the viewer, I know only how to make thumbnails like this.. I wouldn't ask this help if I knew how to make the thumbnail viewer..

    QImage result = img.scaled(800, 600).scaled(200, 150, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);

  6. #6
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt GUI interface like Adobe Acrobat Reader

    well, you're going to have to make a start by yourself and show some code. You say you have a graphics view sidebar. You'll probably want to put these in your scene/view http://qt-project.org/doc/qt-5.0/qgr...ixmapitem.html

    Why don't you try that and post some code if you get stuck.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

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

    Default Re: Qt GUI interface like Adobe Acrobat Reader

    I don't want to use the Qt Design as it dumps all the stuff in one huge file. I need to make separate files for each part so that I can make modifications additions easily.
    Designer does not enforce a monolithic UI design on you. You can design widgets independently and aggregate them into a the main UI using the Promotion feature, or construct the main UI by hand and aggregate the widget that way.

Similar Threads

  1. Replies: 4
    Last Post: 27th June 2012, 10:41
  2. link to a pdf for opening it wit adobe reader
    By szisziszilvi in forum Newbie
    Replies: 1
    Last Post: 29th August 2011, 12:31
  3. Embedding Acrobat Reader or Excel
    By dachick in forum Newbie
    Replies: 4
    Last Post: 20th February 2011, 17:38
  4. Runing inline evice/adobe reader
    By deimus in forum Qt Programming
    Replies: 2
    Last Post: 30th June 2010, 07:19
  5. Call extern app Adobe Acrobat to open *.pdf
    By Lodhart in forum Qt Programming
    Replies: 16
    Last Post: 28th April 2009, 05:36

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.