Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTConcurrent & QFuture in Qwidget
Qt 6.12 LTS is out! See what's new in the release blog

QTConcurrent & QFuture in Qwidget

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 922 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.
  • gfxxG Offline
    gfxxG Offline
    gfxx
    wrote on last edited by
    #1

    I have a Qwidget whit some slot and signal and function ...... I need to run one of these function (read data from modbus) during the operator work on the gui.

    I tried to use qtconcurrent in some bad way :
    qframe (parent),
    ui(new Ui::mywiget)
    {

    QFuture<void> future = QtConcurrent::run(this, &myFunction);

    }

    ..... but I have not quite figured out how to use qtconcurrent qfuture and in this case .... can I have some help (I read with difficulty English).

    bkt

    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
    • Unsolved