Giter Site home page Giter Site logo

zjsxwc / khtml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kde/khtml

0.0 0.0 0.0 34.15 MB

KHtml

License: GNU General Public License v3.0

CMake 0.41% C++ 94.37% Shell 0.09% Perl 1.18% C 1.12% CSS 0.16% Yacc 0.39% Lex 0.05% HTML 0.23% Java 1.76% Python 0.13% Objective-C 0.06% Raku 0.04%

khtml's Introduction

KHTML

HTML rendering engine

Introduction

KHTML is a web rendering engine, based on the KParts technology and using KJS for JavaScript support.

Usage

If you are using CMake, you need to have

find_package(KF5KHtml NO_MODULE)

(or similar) in your CMakeLists.txt file, and you need to link to KF5::KHtml.

To use KHTML in your application, create an instance of KHTMLPart, embed it in your application like any other KPart, and call methods to control what it displays:

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

Alternatives

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.

Another option is to use KDEWebKit, WebKit is a fork of KHTML with substantial industry support.

khtml's People

Contributors

ayac avatar dfaure avatar montel avatar kossebau avatar pinotree avatar tsdgeos avatar purinchu avatar agateau avatar sandsmark avatar randomguy3 avatar aleixpol avatar krf avatar alex1701c avatar mgraesslin avatar milianw avatar nicolasfella avatar conet avatar tosky avatar er-vin avatar arrowd avatar ahmadsamir avatar wolfi323 avatar tcberner avatar tfry-git avatar teo avatar iamsergio avatar astrorobby avatar rhabacker avatar sengels avatar ochurlaud avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.