[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: How can I write KWord/KOffice part, which redraws itself very slowly ?
From: Kamil Dobkowski <kamildobk () poczta ! onet ! pl>
Date: 2001-01-20 17:02:28
[Download RAW message or body]
Hi !
I have a problem. My KoPart redraws itself very slowly ( 3d surface ). Under
normal conditions this operation is performed in little parts from a
background handler function, but when the part is embendded in KWord
it must be done in a single function call. What should I do ? KWord requests
redrawing each time I touch a slider. I tried to buffer the contents in a
pixmap but I don't know how to find out if the part is rendered on
screen or if it is printed ( I can't print the pixmap, looks ugly ! ) .
Pixmap-buffering doesn't work well too. KWord buffers page in QPicture,
QPicture has fixed 24 bit depth, so when I create bitmap with the default
screen depth ( 16-bit ) I get following operations: painting on the picture -
convert bitmap depth from 16 to 24, painting a picture on screen - convert
bitmap depth from 24 to 16. Even my K6/400 with a local X-server dies, when
scrolling document with a few such parts embedded.It would be perfect if I
had my own widget for on-screen rendering, but it seems to be impossible.
Uff ! I have no more ideas. Are there any other solutions ?
--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic