How to show ui for blocking file read operation over i2c write function call ?
-
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 ?
-
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 ?
@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.