Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8705095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:16:16+00:00 2026-06-13T03:16:16+00:00

I’m trying to set html content dynamically to document node in the main thread.

  • 0

I’m trying to set html content dynamically to document node in the main thread.

                QWebElement dynamicContent = ui->webView->page()->mainFrame()->documentElement().findFirst("div#dynamicContent");
                if (QWebFrame *frame = dynamicContent.webFrame())
                {
                    param = "<html><body></body></html>";
                    frame->setHtml(param);
                }

These lines are executed normally, but after that i get read access violation with call stack

0   QWebPluginDatabase::searchPaths QtWebKitd4      0x1009deca  
1   QWebPluginDatabase::searchPaths QtWebKitd4      0x10749451  
2   QWebPluginDatabase::searchPaths QtWebKitd4      0x10749434  
3   QWebPluginDatabase::searchPaths QtWebKitd4      0x10749347  
4   QWebPluginDatabase::searchPaths QtWebKitd4      0x10748469  
5   QWebPluginDatabase::searchPaths QtWebKitd4      0x1074856f  
6   QWebPluginDatabase::searchPaths QtWebKitd4      0x107100d6  
7   QWebPluginDatabase::searchPaths QtWebKitd4      0x107244ce  
8   QWebPluginDatabase::searchPaths QtWebKitd4      0x1074cd58  
9   QWebPluginDatabase::searchPaths QtWebKitd4      0x109f9462  
10  QWebPluginDatabase::searchPaths QtWebKitd4      0x109fa78e  
11  QWebPluginDatabase::searchPaths QtWebKitd4      0x10725e17  
12  QWebPluginDatabase::searchPaths QtWebKitd4      0x10725b25  
13  QWebPluginDatabase::searchPaths QtWebKitd4      0x1074c180  
14  QWebPluginDatabase::searchPaths QtWebKitd4      0x1074cf2e  
15  QWebPluginDatabase::searchPaths QtWebKitd4      0x109f9462  
16  QWebPluginDatabase::searchPaths QtWebKitd4      0x109fcdb2  
17  QWebPluginDatabase::searchPaths QtWebKitd4      0x1074ca2e  
18  QWebPluginDatabase::searchPaths QtWebKitd4      0x10721800  
19  QWebPluginDatabase::searchPaths QtWebKitd4      0x10721383  
20  QWebPluginDatabase::searchPaths QtWebKitd4      0x107253c3  
21  QWebPluginDatabase::searchPaths QtWebKitd4      0x10720293  
22  QWebPluginDatabase::searchPaths QtWebKitd4      0x10750cba  
23  QWebPluginDatabase::searchPaths QtWebKitd4      0x10751ab9  
24  QWebPluginDatabase::searchPaths QtWebKitd4      0x108639e4  
25  QWebPluginDatabase::searchPaths QtWebKitd4      0x10863916  
26  QWebPluginDatabase::searchPaths QtWebKitd4      0x109ecb72  
27  QTemporaryFile::tr  QtCored4        0x671ec7fa  
28  QPictureIO::init    QtGuid4     0x65071a2e  
29  QPictureIO::init    QtGuid4     0x6506f6aa  
30  QTemporaryFile::tr  QtCored4        0x671ceb81  
31  QTemporaryFile::tr  QtCored4        0x671d3d29  
32  QTemporaryFile::tr  QtCored4        0x67214812  
33  QPictureIO::init    QtGuid4     0x65071a2e  
34  QPictureIO::init    QtGuid4     0x6506f6aa  
35  QTemporaryFile::tr  QtCored4        0x671ceb81  
36  QTemporaryFile::tr  QtCored4        0x671d3d29  
37  QTemporaryFile::tr  QtCored4        0x671cfadb  
38  QTemporaryFile::tr  QtCored4        0x672129dd  
39  InternalCallWinProc USER32      0x74d66238  
40  UserCallWinProcCheckWow USER32      0x74d668ea  
41  DispatchMessageWorker   USER32      0x74d67d31  
42  DispatchMessageW    USER32      0x74d67dfa  
43  QTemporaryFile::tr  QtCored4        0x672139f6  
44  QPictureIO::init    QtGuid4     0x6512c4ce  
45  QTemporaryFile::tr  QtCored4        0x671cc68e  
46  QTemporaryFile::tr  QtCored4        0x671cc7c0  
47  QTemporaryFile::tr  QtCored4        0x671cf0fd  
48  QPictureIO::init    QtGuid4     0x6506f398  
49  main    main.cpp    28  0x401ec9    

Any googling or stackoverflowing of problem did not succeed. Had anyone else the same issue? What is the proper usage of QWebFrame::setHtml?

Thank you

[Solved] This issue happens while calling QWebFrame::setHtml not from main thread.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:16:17+00:00Added an answer on June 13, 2026 at 3:16 am

    Have solved this issue, and answer is DO NOT use setHtml method from thread, that differs from main.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.