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. What is the resolution of an error with the Lamaba expression for the run method?
Qt 6.11 is out! See what's new in the release blog

What is the resolution of an error with the Lamaba expression for the run method?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 334 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.
  • M Offline
    M Offline
    mirro
    wrote on last edited by
    #1

    xDG41I.png

    JonBJ 1 Reply Last reply
    0
    • M mirro

      xDG41I.png

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @mirro
      I am not sure, but I don't think run() likes you trying to pass a parameter to the lambda. What about:

      QtConcurrent::run([this, Id]() { ... });
      // or maybe `&Id`
      

      ?

      1 Reply Last reply
      2

      • Login

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