Creating HTMLDocumnet object

Darko Radosavljevic darkorcar at gmail.com
Thu Apr 14 09:57:19 BST 2005


Hello,

I wrote this sample app :

#include <qapplication.h>

#include <dom/html_document.h> 
#include <dom/html_element.h> 
#include <dom/dom_node.h> 
#include <dom/dom_exception.h>

#include <iostream.h>

using namespace DOM;

int main( int argc, char ** argv ) {
   QApplication a( argc, argv, FALSE );
    
    HTMLDocument doc;
    doc.open ();
    doc.write ("Hello World");
    doc.close ();

    return 0;
}

App is compiled and linked.
And when i run binary i got seg fault when creating HTMLDocument ?!

Any suggestions? Is it because i havent instanced KApplication or ... ??
Is it posible to use HTMLDocument without X server running?

Thanks

Darko Radosavljevic




More information about the kfm-devel mailing list