Results 1 to 9 of 9

Thread: HTML viewer

  1. #1
    Join Date
    Jun 2008
    Posts
    4

    Default HTML viewer

    Hi forum,

    I've been looking for some kind of "help viewer", which displays HTML pages within X11.

    The viewer should be capable of Javascript and CSS, and should have the absolute minimum system requirements, that is the hard disk memory and main memory should be as low as possible.

    I'm thinking about a QT widget, but also recompiling some (old) KDE libs with minimum dependencies...

    Before digging deeper into this topic - what would be the most promising alternative regarding a small, fast HTML viewer?

    What hard disk and main memory footprint would you expect?

    Kind regards.

  2. #2
    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: HTML viewer

    It will be hard to go lower than khtml (Konqueror) which depends on KDE3 libs (several MB of memory footprint) or WebKit that in turn depends on Qt4. If you would strip the javascript requirement, you could use QTextBrowser. All gecko based engines are huge memory haulers as well, so that's surely not an option... What exactly do you need it for? I'm asking about deployment...

  3. #3
    Join Date
    Jun 2008
    Posts
    4

    Default Re: HTML viewer

    Dear wysota,

    I'm evaluating some kind of "help viewer" and "interactive configuration interface" for users.

    I'm using a patched "dillo" at this time. However, without Javascript. Unfortunately, Javascript is a "must" - otherwise I can stick with dillo ..

    It doesn't need to be the latest-bleeding-edge implementation of the HTML, CSS or Javascript specs ..
    I'm also thinking about qt2 and kdelibs2 (khtml, kjs) .. any experience with the memory footprint of this libraries? (Would it be a "good" option?)

    Kind regards.

  4. #4
    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: HTML viewer

    I would strongly doubt khtml2 supports css, you'd have to look at release dates of both of them.

    From what I see Dillo is very limited - no support for neither JavaScript nor CSS.

    Is it going to be deployed on a machine with strict memory policy? An embedded system maybe?

    I currently have konqueror opened and it consumes 47MB in total (33M reserved + 14M shared) with some webpage open and probably some caching in memory. Those 14M are more important here - that's the impact of Qt3 and KDE3. The reserved part can surely be much lower.

  5. #5
    Join Date
    Jun 2008
    Posts
    4

    Default Re: HTML viewer

    Dear wysota,

    no it's not an embedded device - but the target is a very low-end x86 pc ..

    The announcements of KDE 2.2 stats that Konqueror supports Javascript and CSS (http://www.kde.org/announcements/announce-2.2.php).

    So I think khtml2 has support for CSS ..

    Maybe any other option for a configuration interface that can be controlled also via remote? (e.g. "native" QT is not an option ..)

    Kind regards.

  6. #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: HTML viewer

    KDE2 might support CSS but in a very limited degree. Comparing the dates one can see KDE2.2 might handle a small subset of CSS2. Heavy effort has been put to make KHTML3 CSS compliant, so I guess previous versions had problems.

    Maybe any other option for a configuration interface that can be controlled also via remote? (e.g. "native" QT is not an option ..)
    Why do you say native Qt is not an option? If you used Qt, you could get the browser almost for free (I'm speaking about Qt4 and WebKit).

  7. #7
    Join Date
    Jun 2008
    Posts
    4

    Default Re: HTML viewer

    Dear wysota,

    can you give me some number about the hard disk and memory footprint of a "minimal" QT4 with WebKit?

    If you compile QT4 without _any_ dependencies - just to display some very generic and simple web pages, what would you expect?

    Kind regards.

  8. #8
    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: HTML viewer

    You can strip many things from Qt while compiling it, so it's impossible for me to determine a minimal set of features you might need. Full-featured WebKit library is about 10MB in volume. Qt libraries QtWebKit depends on are Core, Gui and Network which with a minimal feature set should give about 4-6 additional megabytes. Just be aware Qt depends on some other libraries as well. They should be already available on your system, but they also occupy memory.

    In general if you are going to run the whole set on a unix machine with 64MB RAM or more, it should be enough. With 32MB it might be hard as the system needs some memory to operate as well

  9. #9
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: HTML viewer

    Go with WebKit. It has the smallest footprint of any open source web engine that supports JS/CSS2. It is being used in embedded devices, so it should not have a problem in an older PC.

Similar Threads

  1. HTML in QTextView
    By genick bar-meir in forum Qt Programming
    Replies: 4
    Last Post: 19th September 2007, 17:59
  2. Loading images in html in a QTextBrowser
    By BasicPoke in forum Newbie
    Replies: 1
    Last Post: 6th June 2007, 22:51
  3. Need Basic html Browser
    By awalesminfo in forum Newbie
    Replies: 6
    Last Post: 21st March 2006, 18:14
  4. Replies: 1
    Last Post: 17th March 2006, 09:01
  5. [Qt 4.1]using html in QTextEdit from designer
    By patcito in forum Qt Programming
    Replies: 5
    Last Post: 16th January 2006, 23:36

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.