<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">On Tuesday 02 June 2009, Simon Edwards wrote:<br>
> Hi,<br>
><br>
> Dan Snek wrote:<br>
> > I want to include a KPart (Okular) in a PyKDE4 application, but I<br>
> > couldn't figure out yet, how to do that.<br>
> ><br>
> > While searching around, I found out, that there were<br>
> > createReadWritePart() and createReadOnlyPart() in the kparts global<br>
> > package, but these functions don't exist anymore and the corresponding<br>
> > API-Page doesn't exist (<br>
> > http://api.kde.org/pykde-4.2-api/kparts/global.html ).<br>
> ><br>
> > Are there any simple examples on how to do that?<br>
><br>
> Do you have an example in C++ or recent documentation about how to do<br>
> this in C++?<br>
There is:<br>
http://techbase.kde.org/Development/Tutorials/Using_KParts<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>(it creates a KatePart, to embedd an Okular part, just replace "KatePart" by whatever is the name of the okular part).<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
Cyrille Berger</p></body></html>