Request for member mainframe of non class type QWebPage
-
I am trying to parse the html in insertfrommimedata of Qtextedit to replace all img src's with base64encoded srcs.
This is where I started inside insertfrommimedata
@
QWebPage page();
QWebFrame * frame = page.mainFrame();
// frame->setHtml(source->html);
@
But it is throwing an error saying /home/python/develop/C++/Datamine/datamine.cpp:22: error: request for member 'mainFrame' in 'page', which is of non-class type 'QWebPage()' What do I doI was following this topic "http://www.qtcentre.org/threads/31522-Qt-way-of-getting-parsing-style-attributes-from-html-tags-local-file-batch":http://www.qtcentre.org/threads/31522-Qt-way-of-getting-parsing-style-attributes-from-html-tags-local-file-batch
I am using QT 5.1 -
@
QWebPage page;
@
instead of
@
QWebPage page();
@