Hi,
I am coding a web browser using QtWebKit and i want to save the QWebHistory from my QWebView in a file. But i'm facing a problem : i can serialize QWebHistory in a file easily but i can't deserialize !
I've tried to proceed like that :
QWebView *dest = new QWebView;
QWebHistory *history = dest->history();
stream >> *(history);
file.close();
QDataStream stream(&file);
file.open(QIODevice::ReadOnly);
QWebView *dest = new QWebView;
QWebHistory *history = dest->history();
stream >> *(history);
file.close();
To copy to clipboard, switch view to plain text mode
But I got a SIGSEV
and I've tried that :
QWebView *dest = new QWebView;
QWebHistory history = *(dest->history());
stream >> history;
file.close();
QDataStream stream(&file);
file.open(QIODevice::ReadOnly);
QWebView *dest = new QWebView;
QWebHistory history = *(dest->history());
stream >> history;
file.close();
To copy to clipboard, switch view to plain text mode
But here I got an error while compiling : QWebHistory::QWebHistory() is private
It seems like we can't deserialize QWebHistory but the documentation says that we can !
Thank ahead for your replies
Bookmarks