Results 1 to 2 of 2

Thread: QtConcurrentRun problem

  1. #1
    Join Date
    Sep 2020
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default QtConcurrentRun problem

    Hi, so i have a function that is called readSerial, its a void function in MainWindow, without arguments.

    My question is, how can i call the function with QtConcurrentRun.

    I tried with an empty main function, using:
    QFuture<void> f = QtConcurrent::run(readSerial);

    I also tried:
    QFuture<void> f = QtConcurrent::run(this,readSerial);

    but it doesn't work.
    Some help i cant get?

    Thanks

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,521
    Thanked 278 Times in 273 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QtConcurrentRun problem

    What does it mean "it doesn't work" ?

Similar Threads

  1. 'QtConcurrentRun': No such file or directory
    By Teerayoot in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2014, 18:02
  2. QtConcurrentRun and global function
    By hakermania in forum Newbie
    Replies: 2
    Last Post: 16th July 2011, 11:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.