1

I'm using QtWebkit to develop a webapplication framework. Now I've begun to ude the DOM and I tryed to use the QWebElement. But when I tried to compile it brought the following error:

symbol : class QWebElement
location: class test
QWebElement elem = new QWebElement();

Here is an example that doesn't work:

import com.trolltech.qt.gui.*;
import com.trolltech.qt.webkit.*;
import com.trolltech.qt.core.*;
import com.trolltech.qt.xml.*;

public class test {
    public test() {
        QWebElement elem = new QWebElement();
    }
    public static void main(String[] args) {
        QApplication.initialize(args);
        new test();
        QApplication.exec();
    }
}

Could anyone please tell me what I'm doing wrong?

Edit: I forgot: When I look in the javadoc, I cant find it! everything says that it doesn't exist. But I've seen other people using it. Does it exist or not?

4

0 に答える 0