PDA

View Full Version : WYSIWYG preview in Qt4/Solaris.



Alex_123
21st April 2009, 19:39
Hello!
I have a question regarding Qt4 (QPainter/QPicture) on Sun Solaris (if this matters at all). I have a page of text and I need an option of WYSIWYG preview. I use QPicture to draw the text on. Then I use QPainter::scale function in order to view my page in different scale.

The problem is when I use scale = 1.0 it works just fine, but when I set scale to, say 2, it works terribly slow. I have to wait for about a minute to display a page of text.
I think that the problem is related to QPainter scaling, not to QPicture.
I tried to paint the text directly on a QWidget with different scales and it was quite slow for scale != 1.

Any suggestions are welcomed and appreciated.