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

Bogdan Cristea cristeab at gmail.com
Sat Apr 28 11:48:35 UTC 2012


On Friday 27 April 2012 23:39:48 Albert Astals Cid wrote:
> 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.

Yes, but this is a private method, I still need to change the sources in order 
to get access to page pixmap.

> 
> > 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.

I'll try to do that.

> 
> Cheers,
>   Albert
> 
> > thanks
> 
> _______________________________________________
> Okular-devel mailing list
> Okular-devel at kde.org
> https://mail.kde.org/mailman/listinfo/okular-devel
-- 
Bogdan


More information about the Okular-devel mailing list