On Fri, May 19, 2006 at 12:56:38PM +0200, Gunnar G wrote:
> Hi.
> Since you are using Qt for LyX, I wonder, is there an easy way of using a
> (hopefully small) part of the LyX code to display LaTeX math formulas
> nicely in a ordinary Qt program?

There is no such widget in the LyX code, and separating the math stuff
from LyX core will be a couple of days worth of work.

However, it is feasible.

> Something like:
> QLyXWidget* myWidget = new QLyXWidget("\\frac{3+x}{xy});
> would be great.

I'd suggest to use Qt's XML parser and using an XML based format.
Saves you from pulling in (or re-inventing) several hundred lines
of code...

Andre'


Reply via email to