KDE 4.9 PyKDE API Reference

- KDE's Python API

# PyKDE4.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 | HTMLAppletElement (DOM) | HTMLQuoteElement (DOM)
AbstractView (DOM) | HTMLAreaElement (DOM) | HTMLScriptElement (DOM)
Attr (DOM) | HTMLBaseElement (DOM) | HTMLSelectElement (DOM)
C | HTMLBaseFontElement (DOM) | KHTMLSettings
CDATASection (DOM) | HTMLBlockquoteElement (DOM) | HTMLStyleElement (DOM)
CharacterData (DOM) | HTMLBodyElement (DOM) | HTMLTableCaptionElement (DOM)
Comment (DOM) | HTMLBRElement (DOM) | HTMLTableCellElement (DOM)
Counter (DOM) | HTMLButtonElement (DOM) | HTMLTableColElement (DOM)
CSSCharsetRule (DOM) | HTMLCollection (DOM) | HTMLTableElement (DOM)
CSSException (DOM) | HTMLDirectoryElement (DOM) | HTMLTableRowElement (DOM)
CSSFontFaceRule (DOM) | HTMLDivElement (DOM) | HTMLTableSectionElement (DOM)
CSSImportRule (DOM) | HTMLDListElement (DOM) | HTMLTextAreaElement (DOM)
CSSMediaRule (DOM) | HTMLDocument (DOM) | HTMLTitleElement (DOM)
CSSNamespaceRule (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)