[Okular-devel] Get a pointer to a pixmap of the current page

Albert Astals Cid aacid at kde.org
Fri Apr 27 21:39:48 UTC 2012


El Divendres, 27 d'abril de 2012, a les 19:26:31, Bogdan Cristea va escriure:
> Hi
> 
> I would like to use okular core library for my own e-book reader
> (https://projects.kde.org/projects/playground/edu/ebookreader). As far as I
> have understood the main classes for document manipulation are Document and
> Page. In Page class there is a method hasPixmap(), but how can I get a
> pointer to that pixmap ? 

Using the private _o_nearestPixmap function.

> My reader uses QLabels on which QPixmaps are put
> with setPixmap() method. Is there any other way allowing to interface my
> QLabel widget with okular core library ?

The okular core library is nor really structured to be used by anyone other 
renderer program (it is structure so you can plug backends but not so much for 
frontends). If you want to work on that feel free to drop by #okular and have 
a chat.

Cheers,
  Albert

> 
> thanks


More information about the Okular-devel mailing list