Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to create a QQmlEngine and move it to a different thread?

How to create a QQmlEngine and move it to a different thread?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 1.7k Views
  • 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.
  • DuBuD Offline
    DuBuD Offline
    DuBu
    wrote on last edited by
    #1

    Hi all,
    next to the QQmlApplicationEngine running my GUI I want to create another QQmlEngine to host non visual qml code. This second engine should run in a different thread then the main thread in which the GUI runs.
    How can I accomplish this?
    Thanks in advance!

    1 Reply Last reply
    0
    • ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @DuBu said in How to create a QQmlEngine and move it to a different thread?:

      QQmlEngine

      Hi,
      May be this can help you https://stackoverflow.com/questions/22289423/how-to-avoid-qt-app-exec-blocking-main-thread/22290909#22290909

      LA

      DuBuD 1 Reply Last reply
      0
      • ODБOïO ODБOï

        @DuBu said in How to create a QQmlEngine and move it to a different thread?:

        QQmlEngine

        Hi,
        May be this can help you https://stackoverflow.com/questions/22289423/how-to-avoid-qt-app-exec-blocking-main-thread/22290909#22290909

        LA

        DuBuD Offline
        DuBuD Offline
        DuBu
        wrote on last edited by
        #3

        @LeLev Thanks for the link! Unfortunately I want it the other way round: I wan't the GUI thread to stay in the main thread and a 2nd qml engine (w/o visible components) in it's own thread.

        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