Hello. I was use this code on qt 5.3.1 32 BIT
But Now i have 5.3.2 64 BIT
std::string html = std::move(output.buffer); // html from curl - all ok
QWebPage * tmp_webpage = new QWebPage();
tmp_webpage
->mainFrame
()->setHtml
(QString::fromStdString(html
));
std::fstream test_stream;
test_stream.open("example14.html", std::ios::out | std::ios::in);
test_stream << tmp_webpage->mainFrame()->toHtml().toStdString(); // html was cut in about 50%
test_stream.close();
QWebFrame * tmp_frame = tmp_webpage->mainFrame();
QWebElement mainTable_site
= tmp_frame
->findFirstElement
(QString::fromStdString(mainTable_selector
));
// not found because qt cut my correct html
std::string html = std::move(output.buffer); // html from curl - all ok
QWebPage * tmp_webpage = new QWebPage();
tmp_webpage->mainFrame()->setHtml(QString::fromStdString(html));
std::fstream test_stream;
test_stream.open("example14.html", std::ios::out | std::ios::in);
test_stream << tmp_webpage->mainFrame()->toHtml().toStdString(); // html was cut in about 50%
test_stream.close();
QWebFrame * tmp_frame = tmp_webpage->mainFrame();
QWebElement mainTable_site = tmp_frame->findFirstElement(QString::fromStdString(mainTable_selector)); // not found because qt cut my correct html
To copy to clipboard, switch view to plain text mode
IF it is necessarry i can share my HTML (but trust me - it is all okey) After update QT to 64 bit and 5.3.2 version sth going wrong.
Best regards
Bookmarks