Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to show ui for blocking file read operation over i2c write function call ?
Qt 6.11 is out! See what's new in the release blog

How to show ui for blocking file read operation over i2c write function call ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 432 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    i am executing command from file over i2c using write function call. but this file is to big so it take time so i have to show ui for process execution percentage wise. how to do this thing in qt. my i2c write operation for file execution is blocking process. so for this blocking process how to show ui which show process execution percentage wise ?

    jsulmJ 1 Reply Last reply
    0
    • Q Qt embedded developer

      i am executing command from file over i2c using write function call. but this file is to big so it take time so i have to show ui for process execution percentage wise. how to do this thing in qt. my i2c write operation for file execution is blocking process. so for this blocking process how to show ui which show process execution percentage wise ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Qt-embedded-developer Move file writing in a thread, so the main (GUI) thread is not blocked while writing the file.
      To show the progress see https://doc.qt.io/qt-5/qprogressdialog.html - emit a signal from the writing thread every-time you want to update the progress and connect a slot to that signal where you update the QProgressBar.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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