Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Progress Bar Value Linked With QThread from C++
Forum Updated to NodeBB v4.3 + New Features

Progress Bar Value Linked With QThread from C++

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 1.3k 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.
  • B Offline
    B Offline
    Beemaneni Bala
    wrote on last edited by
    #1

    Hi Guys,
    I am using Qt and QML where my progress bar value depend on work done at backend in C++. My c++ function keeps updating contents from database to csv file.In the mean time on every 10 % of data updated to CSV file i am sending a signal to QML. so that my progress bar shows the value.

    So all the above process cannot be done on a single thread as it blocks GUI.So i am using a class derived from QThread and starting that thread when call from QML has come. So this works fine for me.

    The thing i need to know is ..Is the approach what i am using is good ? or else is there any other Qt classes that support this action better than QThread ?

    raven-worxR 1 Reply Last reply
    0
    • B Beemaneni Bala

      Hi Guys,
      I am using Qt and QML where my progress bar value depend on work done at backend in C++. My c++ function keeps updating contents from database to csv file.In the mean time on every 10 % of data updated to CSV file i am sending a signal to QML. so that my progress bar shows the value.

      So all the above process cannot be done on a single thread as it blocks GUI.So i am using a class derived from QThread and starting that thread when call from QML has come. So this works fine for me.

      The thing i need to know is ..Is the approach what i am using is good ? or else is there any other Qt classes that support this action better than QThread ?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Beemaneni-Bala
      from the design you mentioned it's ok and and every-day use-case.
      When your application successfully runs everything is fine ;)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Beemaneni Bala
        wrote on last edited by
        #3

        Thanks ..I came across QFutureWatcher Class . So i was in doubt , will that be providing any benifits on performance issues?

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