Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Request for member mainframe of non class type QWebPage

Request for member mainframe of non class type QWebPage

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    georgecyriac989
    wrote on last edited by
    #1

    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 do

    I 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

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @
      QWebPage page;
      @
      instead of
      @
      QWebPage page();
      @

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved