1

I have a sort of Facebook client written with a help of Qt. It uses QWebView to access Facebook feed dialog. Facebook api redirects to the login page and after authorization allows to post a message.

The problem is it can be done correctly only the first time I use it in my app. The next time QWebView only loads html with redirect scripts and do nothing (but the first time it yields loading of the login page).

Does anyone know what kind of problem is it?

update: It appears any javascript content won't work, not only redirect scripts.

4

1 回答 1

1

像这样启用Javascript吗?

QWebSettings *settings = QWebSettings::globalSettings(); 设置->setAttribute(QWebSettings::JavascriptEnabled, true);

于 2012-12-02T08:48:04.803 回答