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. Signal from QML to C++ and threads
Forum Updated to NodeBB v4.3 + New Features

Signal from QML to C++ and threads

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 822 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.
  • R Offline
    R Offline
    RudolfVonKrugstein
    wrote on last edited by
    #1

    Hey,

    I have a login screen in QML. When the user clicks "Login" a signal is emitted, which is processed in a C++ object. The C++ objects does the login, which is a time consuming operation.

    Now my question: Should the C++ object start a separate thread for this? If the signal-processing function (the slot) takes time, will it block the UI (or other stuff) and is it already in a separate thread?

    Thanks!
    Nathan

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Trikrista
      wrote on last edited by
      #2

      If UI is first thread and signal-processing function is second thread, then second thread should not block the first thread.

      But everything depends on the implementation of

      I'm sorry for my bad English

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RudolfVonKrugstein
        wrote on last edited by
        #3

        That makes sense.

        But is the implementation consistent across platforms and Qt versions?

        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