Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about qfuture

Read more about qfuture

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - qfuture

how to run a membber function with QtConcurrrent Qt6? type 'decay_t cannot be used prior to '::' because it has no members)

i'm trying to run a member function but but i got an error , help me please i tried with this line of code QFuture<qlonglong> future = QtConcurrent::run(this,&backD::analysa); and analysa()...
test-img

Aquiles

c++

multithreading

qt

qtconcurrent

qfuture

Votes: 0

Answers: 2

Latest Answer

Try QtConcurrent::run([this]{ return analysa(); }); or QtConcurrent::run([this] -> qlonglong { return analysa(); });, whichever compiles in your case.
test-img

HiFile.app - best file manager

Cannot take the address of an rvalue of type &#39;qlonglong&#39; (aka &#39;long long&#39;)

I get this error while trying to use QtConcurrent: Cannot take the address of an rvalue of type 'qlonglong' (aka 'long long') I'm trying to compute the size of a folder. I made a method that returns...
test-img

user18597487

c++

multithreading

qt

qtconcurrent

qfuture

Votes: 0

Answers: 1

Latest Answer

You are trying to call analysa() and then take the address of its return value. You need to instead take the address of analysa itself. To do that, simply remove the parenthesis from it: QFuture<q...
test-img

Remy Lebeau

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved