PDA

View Full Version : after finishing QWebView::load() the url is invalid



cic
15th October 2013, 11:15
QSignalSpy loadSpy(view, SIGNAL(loadFinished(bool)));

QUrl url(QLatin1String("www.google.de"));
view -> load(url);
view -> setFocus();

do {
QTest::qWait(0);
} while (loadSpy.count() == 0);

bool isValid = view -> url().isValid();
EXPECT_EQ(view -> url(), url);

Q_UNUSED(isValid);


the url is invalid, any idea? I am doing test for the webview.