Can a KHTMLPart be used without a window?
Howdy All.
I'm trying to get at some form data on HTML pages in
a dedicated data collection environment where there
is no display.
It would be very convenient to use the KDE DOM
methods as well. It seems like a natural choice.
However, even very simple programs like this
Code:
int
main(int argc, char *argv[])
{
KHTMLPart *html = new KHTMLPart();
}
error out with:
Can I really not access the DOM and HTML parsing routines without a window?
If so, does anybody have a sense for how hard that might be to "fix"??
Finally, alternate suggestions are quite welcome!
Thanks!
Andy
Re: Can a KHTMLPart be used without a window?
I don't know about KHTML, so I can't help you there, but if you can use Qt 4, there are some great dom support classes.
Qt 4 DOM classes
Just as a guess though, i think QPixmap uses native calls on the platforms Qt supports, I think it uses xlib stuff on linux and gdi stuff on windows. If so, then you need to able to use those libraries
Re: Can a KHTMLPart be used without a window?
Re: Can a KHTMLPart be used without a window?
Hey, thanks for chiming in!
Let me rephrase my question: I know QT and KDE have some great
DOM methods, that's why I'm here.
I'm trying to use them in a standalone environment where I have
no display. Therefore no X windows, and therefore, it appears,
not much access to QT and KDE other than the string functions...
Any pointers?
Thanks!
Andy
Re: Can a KHTMLPart be used without a window?
In Qt4 you can build console only projects. This is not possible with KDE3 as it's based on Qt3. KDE4 is not stable yet, I would not touch it.