Module khtml

KDE 4.2 PyKDE API Reference

- KDE's Python API

# khtml Module

## KDE HTML Parser and Widget

If you want a fully-fledged HTML browser widget in your application, you can use KHTMLPart to do so.

    KUrl url = "http://www.kde.org";
    KHTMLPart *w = new KHTMLPart();
    w->openUrl(url);
    w->view()->resize(500, 400);
    w->show();

For more information, see the documentation for KHTMLPart.

Note that using KHTMLPart may introduce security vulnerabilities and unnecessary bloat to your application. Qt's text widgets are rich-text capable, and will interpret a limited subset of HTML.

Author(s):
  Torben Weis <weis@stud.uni-frankfurt.de>
  Josip A. Gracin <grac@fly.cc.fer.hr>
  Martin Jones <mjones@kde.org>
  Waldo Bastian <bastian@kde.org>
  Lars Knoll <knoll@kde.org>
  Antti Koivisto <koivisto@iki.fi>
  Dirk Mueller <mueller@kde.org>
  Peter Kelly <pmk@post.com>
  George Staikos <staikos@kde.org>
  Allan Sandfeld Jensen <kde@carewolf.com>
  Germain Garand <germain@ebooksfrance.org>
  Maksim Orlovich <maksim@kde.org>
  KHTML has also heavily benefited from the work of Apple Computer, Inc.

Maintainer(s):
  Allan Sandfeld Jensen
  Germain Garand
  Maksim Orlovich

License(s):
  LGPLv2

## Namespaces

D | G |
DOM | global |

## Class Index

A | HTMLAreaElement (DOM) | HTMLScriptElement (DOM)
AbstractView (DOM) | HTMLBaseElement (DOM) | HTMLSelectElement (DOM)
Attr (DOM) | HTMLBaseFontElement (DOM) | KHTMLSettings
C | HTMLBlockquoteElement (DOM) | HTMLStyleElement (DOM)
CDATASection (DOM) | HTMLBodyElement (DOM) | HTMLTableCaptionElement (DOM)
CharacterData (DOM) | HTMLBRElement (DOM) | HTMLTableCellElement (DOM)
Comment (DOM) | HTMLButtonElement (DOM) | HTMLTableColElement (DOM)
Counter (DOM) | HTMLCollection (DOM) | HTMLTableElement (DOM)
CSSCharsetRule (DOM) | HTMLDirectoryElement (DOM) | HTMLTableRowElement (DOM)
CSSException (DOM) | HTMLDivElement (DOM) | HTMLTableSectionElement (DOM)
CSSFontFaceRule (DOM) | HTMLDListElement (DOM) | HTMLTextAreaElement (DOM)
CSSImportRule (DOM) | HTMLDocument (DOM) | HTMLTitleElement (DOM)
CSSMediaRule (DOM) | HTMLElement (DOM) | HTMLUListElement (DOM)
CSSPageRule (DOM) | HTMLFieldSetElement (DOM) | KHTMLView
CSSPrimitiveValue (DOM) | HTMLFontElement (DOM) | L
CSSRule (DOM) | HTMLFormElement (DOM) | LinkStyle (DOM)
CSSRuleList (DOM) | HTMLFrameElement (DOM) | M
CSSStyleDeclaration (DOM) | HTMLFrameSetElement (DOM) | MediaList (DOM)
CSSStyleRule (DOM) | HTMLHeadElement (DOM) | MouseEvent (DOM)
CSSStyleSheet (DOM) | HTMLHeadingElement (DOM) | MutationEvent (DOM)
CSSUnknownRule (DOM) | HTMLHRElement (DOM) | N
CSSValue (DOM) | HTMLHtmlElement (DOM) | NamedNodeMap (DOM)
CSSValueList (DOM) | HTMLIFrameElement (DOM) | Node (DOM)
CustomNodeFilter (DOM) | HTMLImageElement (DOM) | NodeFilter (DOM)
D | HTMLInputElement (DOM) | NodeIterator (DOM)
Document (DOM) | HTMLIsIndexElement (DOM) | NodeList (DOM)
DocumentFragment (DOM) | HTMLLabelElement (DOM) | Notation (DOM)
DocumentStyle (DOM) | HTMLLayerElement (DOM) | P
DocumentType (DOM) | HTMLLegendElement (DOM) | ProcessingInstruction (DOM)
DOMException (DOM) | HTMLLIElement (DOM) | R
DOMImplementation (DOM) | HTMLLinkElement (DOM) | Range (DOM)
DomShared (DOM) | HTMLMapElement (DOM) | RangeException (DOM)
DOMString (DOM) | HTMLMenuElement (DOM) | Rect (DOM)
E | HTMLMetaElement (DOM) | RGBColor (DOM)
Element (DOM) | HTMLModElement (DOM) | S
Entity (DOM) | HTMLObjectElement (DOM) | StyleSheet (DOM)
EntityReference (DOM) | HTMLOListElement (DOM) | StyleSheetList (DOM)
Event (DOM) | HTMLOptGroupElement (DOM) | T
EventException (DOM) | HTMLOptionElement (DOM) | Text (DOM)
EventListener (DOM) | HTMLParagraphElement (DOM) | TextEvent (DOM)
KeyboardEvent (DOM) | HTMLParamElement (DOM) | TreeWalker (DOM)
H | KHTMLPart | U
HTMLAnchorElement (DOM) | HTMLPreElement (DOM) | UIEvent (DOM)
HTMLAppletElement (DOM) | HTMLQuoteElement (DOM) |