Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QWebPage in a different thread
Forum Updated to NodeBB v4.3 + New Features

QWebPage in a different thread

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 3.5k 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.
  • 2 Offline
    2 Offline
    2beers
    wrote on last edited by
    #1

    Hi everyone. I trying to create a QWebPage object in a separate thread and it gives me the following error:

    bq. ASSERT failure in QWidget: "Widgets must be created in the GUI thread."
    Invalid parameter passed to C runtime function.
    Invalid parameter passed to C runtime function.
    QObject::killTimers: timers cannot be stopped from another thread

    I see that QwebPage inherits QObject. What is the problem and what I need to do to fix it.

    Thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      QWebPage uses GUI elements. It must live in the GUI thread.

      Please close this as a duplicate of http://developer.qt.nokia.com/forums/viewthread/6429/

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      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