Using a Web Browser within your Linux Application

This is a discussion on Using a Web Browser within your Linux Application within the Linux Programming forums, part of the Platform Specific Boards category; Hi all! I wanted to know whether we can embed a web browser into our Linux application, the way we ...

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    1

    Question Using a Web Browser within your Linux Application

    Hi all!

    I wanted to know whether we can embed a web browser into our Linux application, the way we can do it in Windows programming using ActiveX objects?

    Is there a way to implement Mozilla FireFox inside your application? Is there a custom Qt widget that achieves the same?

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    It can be done on linux with SWT, but that's a Java library. If your really eager you can look at the C source for the SWT Browser widget to see how it's done (it's all JNI stuff).

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    It's possible to do it, but it's particular to each browser and toolkit. I don't think Qt itself offers a browser widget, but you can use a Konqueror KPart to easily embed Konqueror.
    GTK+ offers a browser widget, I think, which embeds something Gecko-based.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    or use glade and make your own widget for gtk to embed whichever browser you want to use.
    the gre is frequently used as an embedded browser engine.

    even KDE stopped working on thier own rendering engine / library and just use the mozilla engine.
    [ KHTML is a dead library, the kparts tools do use the gecko rendering engine. ]
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  5. #5
    Registered User
    Join Date
    Dec 2006
    Posts
    28

    Smile Use gtkembedmoz gtk widget

    hi,
    I have done this stuff aome months back ,but i dont remember things properly.
    I had used gtkembedmoz or gtkmozembed which is a library provided by gtk.
    Using this library ucan create a browser instace which can be embeded in any window u want.
    Search for this on google.

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    Quote Originally Posted by Jaqui
    even KDE stopped working on thier own rendering engine / library and just use the mozilla engine.
    [ KHTML is a dead library, the kparts tools do use the gecko rendering engine. ]
    Uh, what? Konqueror happily continues to use KHTML, as do all other Html-aware KDE apps. There is an ongoing effort to port the Gecko widgets to use Qt instead of GTK, but this has nothing at all to do with KHTML.
    KHTML is under active development and is planned to have several new features in KDE4.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  7. #7
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    really CornedBee?
    two months ago when I was looking for the khtml sources I could only find not being developed anymore tarballs of them, from KDE.org links.

    I could not find any khtml sources newer than 1 year.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  8. #8
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    http://websvn.kde.org/trunk/KDE/kdelibs/khtml/

    There you go. Last checking 29 hours ago. I'd say that qualifies as active development. I don't know (and don't care) about tarballs.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linux, doubles, and unions
    By paraglidersd in forum Linux Programming
    Replies: 14
    Last Post: 11-19-2008, 10:41 AM
  2. For PS3 owners... question about PS3 web browser
    By Lionel in forum A Brief History of Cprogramming.com
    Replies: 40
    Last Post: 09-28-2007, 03:15 PM
  3. Amaya web browser
    By dwks in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-10-2005, 08:17 PM
  4. MFC Web Browser
    By Unregistered in forum Windows Programming
    Replies: 3
    Last Post: 09-11-2001, 02:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21