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. QtConcurrent::run with functions with default arguments

QtConcurrent::run with functions with default arguments

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.6k 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.
  • D Offline
    D Offline
    daviddoria
    wrote on 12 Mar 2012, 19:43 last edited by
    #1

    Is there a way to run a function that specifies default arguments using QtConcurrent::run() (and use the default arguments)? I have a function void MyFunction(const float a = 1.0f); that I can call with QtConcurrent::run(FunctionWithDefaultArguments, 2.0f);, but not QtConcurrent::run(FunctionWithDefaultArguments);

    (Note that FunctionWithDefaultArguments() works fine (without run()).

    Is this possible?

    Thanks,

    David

    1 Reply Last reply
    0

    1/1

    12 Mar 2012, 19:43

    • Login

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